Class PDFDocTimstampProcessor
java.lang.Object
se.swedenconnect.sigval.pdf.timestamp.issue.impl.PDFDocTimstampProcessor
This class provides a PDF signing processor that provides the basic functionality to use a
SignatureInterface implementation to generate PDF
signature data.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResult object forPDFSigningProcessor.signPdfDocument(PDDocument, PDFBoxSignatureInterface, long, VisibleSignatureImage). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSVTSealedPDF(byte[] pdfDocumentBytes, String svt, PDFDocTimestampSignatureInterface pdfSignatureProvider) Add a document timestamp with an SVT token to the supplied PDF document.
-
Constructor Details
-
PDFDocTimstampProcessor
public PDFDocTimstampProcessor()
-
-
Method Details
-
createSVTSealedPDF
public static PDFDocTimstampProcessor.Result createSVTSealedPDF(byte[] pdfDocumentBytes, String svt, PDFDocTimestampSignatureInterface pdfSignatureProvider) throws SignatureException Add a document timestamp with an SVT token to the supplied PDF document.- Parameters:
pdfDocumentBytes- the document to signsvt- signature validation tokenpdfSignatureProvider- the PDFBox signature provider- Returns:
- the extended document
- Throws:
SignatureException- for signature errors
-