Class PadesContainerGenerator
java.lang.Object
br.ufsc.labsec.signature.signer.CompleteContainerGenerator<PadesInformation, Object, PadesSignature>
br.ufsc.labsec.signature.conformanceVerifier.pades.PadesContainerGenerator
- All Implemented Interfaces:
ContainerGenerator<PadesInformation, PadesSignature>
public class PadesContainerGenerator
extends CompleteContainerGenerator<PadesInformation, Object, PadesSignature>
-
Field Summary
Fields inherited from class CompleteContainerGenerator
attributeFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(FileToBeSigned<? extends PadesInformation> fileToBeSigned) Gera a assinatura a partir dos atributos e conteúdos informadosprotected SignatureContainer<PadesSignature> generateSignature(FileToBeSigned<? extends PadesInformation> fileToBeSigned, List<SignatureAttribute<Object>> signedAttributes) byte[]getStream(org.apache.pdfbox.pdmodel.PDDocument document) Methods inherited from class CompleteContainerGenerator
constructSignedAttributes, constructUnsignedAttributesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerGenerator
in, notIn
-
Constructor Details
-
PadesContainerGenerator
-
-
Method Details
-
generateSignature
protected SignatureContainer<PadesSignature> generateSignature(FileToBeSigned<? extends PadesInformation> fileToBeSigned, List<SignatureAttribute<Object>> signedAttributes) throws br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerException - Specified by:
generateSignaturein classCompleteContainerGenerator<PadesInformation, Object, PadesSignature>- Throws:
br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerException
-
getStream
- Throws:
IOException
-
generate
public SignatureContainer<PadesSignature> generate(FileToBeSigned<? extends PadesInformation> fileToBeSigned) throws br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerException, InvalidKeyException Description copied from interface:ContainerGeneratorGera a assinatura a partir dos atributos e conteúdos informados- Specified by:
generatein interfaceContainerGenerator<PadesInformation, PadesSignature>- Overrides:
generatein classCompleteContainerGenerator<PadesInformation, Object, PadesSignature>- Returns:
- Um contêiner de assinatura que contém a assinatura gerada
- Throws:
br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerExceptionInvalidKeyException
-