Class PadesTimeStampSignatureImp
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.pades.PadesTimeStampSignatureImp
- All Implemented Interfaces:
org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface
public class PadesTimeStampSignatureImp extends Object implements org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface
Esta classe adiciona um TimeStamp à uma assinatura PAdES.
-
Constructor Summary
Constructors Constructor Description PadesTimeStampSignatureImp(PadesSignatureComponent component, FileToBeSigned<? extends PadesInformation> fileToBeSigned, org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature pdSignature)
Construtor -
Method Summary
Modifier and Type Method Description byte[]
sign(InputStream content)
Constrói um carimbo de tempo
-
Constructor Details
-
PadesTimeStampSignatureImp
public PadesTimeStampSignatureImp(PadesSignatureComponent component, FileToBeSigned<? extends PadesInformation> fileToBeSigned, org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature pdSignature) throws CadesSignatureExceptionConstrutor- Parameters:
component
- Componente de assinatura PAdESfileToBeSigned
- Os dados da assinatura originalpdSignature
- A assinatura a ser adicionada- Throws:
CadesSignatureException
-
-
Method Details
-
sign
Constrói um carimbo de tempo- Specified by:
sign
in interfaceorg.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface
- Parameters:
content
- Stream do conteúdo do carimbo- Returns:
- Os bytes do carimbo criado
- Throws:
IOException
- Exceção em caso de erro na criação do carimbo
-