Class CadesContainerGenerator
java.lang.Object
br.ufsc.labsec.signature.signer.CompleteContainerGenerator<CadesInformation,org.bouncycastle.asn1.cms.Attribute,CadesSignature>
br.ufsc.labsec.signature.conformanceVerifier.cades.CadesContainerGenerator
- All Implemented Interfaces:
ContainerGenerator<CadesInformation,CadesSignature>
- Direct Known Subclasses:
CounterSignatureGenerator
public class CadesContainerGenerator extends CompleteContainerGenerator<CadesInformation,org.bouncycastle.asn1.cms.Attribute,CadesSignature>
Esta classe é utilizada apenas pela classe
CadesContainerGenerator
.
Não deve ser utilizada pelo usuário.
Implementa ContainerGenerator
.-
Constructor Summary
Constructors Constructor Description CadesContainerGenerator(CadesSignatureComponent component)
Constrói umCadesContainerGenerator
a partir da Política de Assinatura usada na assinatura. -
Method Summary
Modifier and Type Method Description protected SignatureContainer<CadesSignature>
generateSignature(FileToBeSigned<? extends CadesInformation> fileToBeSigned, List<SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>> signedAttributes)
Gera uma assinatura no formato CAdES.Methods inherited from class br.ufsc.labsec.signature.signer.CompleteContainerGenerator
generate
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
-
CadesContainerGenerator
Constrói umCadesContainerGenerator
a partir da Política de Assinatura usada na assinatura.- Parameters:
component
- Componente de assinatura CAdES
-
-
Method Details
-
generateSignature
protected SignatureContainer<CadesSignature> generateSignature(FileToBeSigned<? extends CadesInformation> fileToBeSigned, List<SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>> signedAttributes) throws SignerExceptionGera uma assinatura no formato CAdES.- Specified by:
generateSignature
in classCompleteContainerGenerator<CadesInformation,org.bouncycastle.asn1.cms.Attribute,CadesSignature>
- Returns:
- O conteúdo assinado
- Throws:
SignerException
-