Package se.swedenconnect.sigval.xml.svt
Class XMLDocumentSVTIssuer
java.lang.Object
se.swedenconnect.sigval.xml.svt.XMLDocumentSVTIssuer
- All Implemented Interfaces:
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)
-
Field Summary
Fields inherited from interface se.swedenconnect.sigval.xml.xmlstruct.XMLSigConstants
XADES_NAMESPACE, XML_SVT_NS, XMLDSIG_NS, XMLDSIG_V2_TRANSFORM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
issueSvt
(Document document, se.swedenconnect.sigval.svt.issuer.SVTModel svtModel, SVTExtendpolicy svtMethod, boolean issueSvtOnFailedValidation) Issues Signature Validation Tokens to signatures of an XML document and extends the document signatures with the SVT tokens.
-
Constructor Details
-
XMLDocumentSVTIssuer
-
-
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 extendsvtModel
- model providing basic SVT parameterssvtMethod
- specifying the extension strategy as defined by options declared inSVTExtendpolicy
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
-