Class DefaultPDFSignatureContextFactory
java.lang.Object
se.swedenconnect.sigval.pdf.pdfstruct.impl.DefaultPDFSignatureContextFactory
- All Implemented Interfaces:
PDFSignatureContextFactory
Default implementation of the
PDFSignatureContextFactory
providing a base PDF signature context for
signed PDF documents to determine whether updates to a PDF document after it was signed can be considered safe
with respect to visual content.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPdfSignatureContext
(byte[] pdfDocument) Provide a PDF signature context object for a particular PDF document.
-
Constructor Details
-
DefaultPDFSignatureContextFactory
public DefaultPDFSignatureContextFactory()
-
-
Method Details
-
getPdfSignatureContext
Provide a PDF signature context object for a particular PDF document. This signature context object can be used to determine signature validity and whether a signature in the document covers the whole document.- Specified by:
getPdfSignatureContext
in interfacePDFSignatureContextFactory
- Parameters:
pdfDocument
- the target PDF document- Returns:
- an implementatioin of the
PDFSignatureContext
interface - Throws:
IOException
- error parsing the provided PDF document
-