public class XmlSignatureExplorer extends SignatureExplorer2
By default, the XML signatures are only inspected but not validated. In order to validate the file, you must call the method setValidate and also the methods regarding signature policies, which specify the parameters for the validation.
acceptableExplicitPolicies, client, defaultSignaturePolicyId, securityContextId, validate
Constructor and Description |
---|
XmlSignatureExplorer(RestPkiClient client)
Craete a new instance using the given RestPkiClient
|
Modifier and Type | Method and Description |
---|---|
java.util.List<XmlSignature> |
open()
Performs the open signature operation.
|
fillRequest, setAcceptableExplicitPolicies, setDefaultSignaturePolicy, setSecurityContext, setSignatureFile, setSignatureFile, setSignatureFile, setSignatureFile, setSignatureFile, setValidate
public XmlSignatureExplorer(RestPkiClient client)
client
- the RestPkiClient which shall be used.public java.util.List<XmlSignature> open() throws RestException, java.io.IOException
RestException
- if an error occurs when calling REST PKI.java.io.IOException
- if an error occurs while reading the signature file.