Class XMLDocumentSVTIssuer

java.lang.Object
se.swedenconnect.sigval.xml.svt.XMLDocumentSVTIssuer
All Implemented Interfaces:
XMLSigConstants

public class XMLDocumentSVTIssuer extends Object implements XMLSigConstants
Implements functions to issue SVT for signed XML documents and to extend the signatures of the XML document with SVT tokens
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

  • Method Details

    • issueSvt

      public byte[] issueSvt(Document document, se.swedenconnect.sigval.svt.issuer.SVTModel svtModel, SVTExtendpolicy svtMethod, boolean issueSvtOnFailedValidation) throws Exception
      Issues Signature Validation Tokens to signatures of an XML document and extends the document signatures with the SVT tokens.
      Parameters:
      document - The signed document to extend
      svtModel - model providing basic SVT parameters
      svtMethod - specifying the extension strategy as defined by options declared in SVTExtendpolicy
      issueSvtOnFailedValidation - indicates if SVT is issued on documents that failed signature validation
      Returns:
      bytes of the signed XML document extended with SVT
      Throws:
      Exception - on critical errors that prevent the document from being extended as requested