Class DefaultXMLSignatureContextFactory

java.lang.Object
se.swedenconnect.sigval.xml.xmlstruct.impl.DefaultXMLSignatureContextFactory
All Implemented Interfaces:
XMLSignatureContextFactory

public class DefaultXMLSignatureContextFactory extends Object implements XMLSignatureContextFactory
Default factory class providing instances of XMLSignatureContext.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • DefaultXMLSignatureContextFactory

      public DefaultXMLSignatureContextFactory()
  • Method Details

    • getSignatureContext

      public XMLSignatureContext getSignatureContext(Document document) throws IOException
      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 interface XMLSignatureContextFactory
      Parameters:
      document - the target XML document
      Returns:
      an implementatioin of the XMLSignatureContext interface
      Throws:
      IOException - error parsing the provided PDF document