Class DefaultXMLSignatureContextFactory
java.lang.Object
se.swedenconnect.sigval.xml.xmlstruct.impl.DefaultXMLSignatureContextFactory
- All Implemented Interfaces:
XMLSignatureContextFactory
Default factory class providing instances of XMLSignatureContext.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSignatureContext
(Document document) Provide a PDF signature context object for a particular PDF document.
-
Constructor Details
-
DefaultXMLSignatureContextFactory
public DefaultXMLSignatureContextFactory()
-
-
Method Details
-
getSignatureContext
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:
getSignatureContext
in interfaceXMLSignatureContextFactory
- Parameters:
document
- the target XML document- Returns:
- an implementatioin of the
XMLSignatureContext
interface - Throws:
IOException
- error parsing the provided PDF document
-