Package br.ufsc.labsec.signature.signer
Class CompleteContainerGenerator<Info extends ExtraInformation,Encod,Sig extends Signature<Encod>>
java.lang.Object
br.ufsc.labsec.signature.signer.CompleteContainerGenerator<Info,Encod,Sig>
- All Implemented Interfaces:
ContainerGenerator<Info,Sig>
- Direct Known Subclasses:
CadesContainerGenerator
,JadesContainerGenerator
,PadesContainerGenerator
,XadesContainerGenerator
public abstract class CompleteContainerGenerator<Info extends ExtraInformation,Encod,Sig extends Signature<Encod>> extends Object implements ContainerGenerator<Info,Sig>
-
Constructor Summary
Constructors Constructor Description CompleteContainerGenerator(AttributeFactory<Info,Encod,Sig> attributeFactory)
-
Method Summary
Modifier and Type Method Description SignatureContainer<Sig>
generate(FileToBeSigned<? extends Info> fileToBeSigned)
Gera a assinatura a partir dos atributos e conteúdos informadosprotected abstract SignatureContainer<Sig>
generateSignature(FileToBeSigned<? extends Info> fileToBeSigned, List<SignatureAttribute<Encod>> signedAttributes)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface br.ufsc.labsec.signature.signer.ContainerGenerator
in, notIn
-
Constructor Details
-
CompleteContainerGenerator
-
-
Method Details
-
generate
public SignatureContainer<Sig> generate(FileToBeSigned<? extends Info> fileToBeSigned) throws SignerException, InvalidKeyExceptionDescription copied from interface:ContainerGenerator
Gera a assinatura a partir dos atributos e conteúdos informados- Specified by:
generate
in interfaceContainerGenerator<Info extends ExtraInformation,Encod>
- Returns:
- Um contêiner de assinatura que contém a assinatura gerada
- Throws:
SignerException
InvalidKeyException
-
generateSignature
protected abstract SignatureContainer<Sig> generateSignature(FileToBeSigned<? extends Info> fileToBeSigned, List<SignatureAttribute<Encod>> signedAttributes) throws SignerException- Throws:
SignerException
-