Class XMLSignaturePolicyValidator
java.lang.Object
eu.europa.esig.dss.spi.policy.AbstractSignaturePolicyValidator
eu.europa.esig.dss.xades.validation.policy.XMLSignaturePolicyValidator
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
The error key to be used for XML processing related issuesFields inherited from class eu.europa.esig.dss.spi.policy.AbstractSignaturePolicyValidator
GENERAL_ERROR_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canValidate
(SignaturePolicy signaturePolicy) Checks if the SignaturePolicy can be validatedgetDigestAfterTransforms
(DSSDocument policyDocument, DigestAlgorithm digestAlgorithm, Element transformsElement) Computes Digests after processing of giventransformsElement
validate
(SignaturePolicy signaturePolicy) Performs aSignaturePolicy
validationMethods inherited from class eu.europa.esig.dss.spi.policy.AbstractSignaturePolicyValidator
getComputedDigest
-
Field Details
-
XML_ERROR_KEY
The error key to be used for XML processing related issues- See Also:
-
-
Constructor Details
-
XMLSignaturePolicyValidator
public XMLSignaturePolicyValidator()Default constructor
-
-
Method Details
-
canValidate
Description copied from interface:SignaturePolicyValidator
Checks if the SignaturePolicy can be validated- Parameters:
signaturePolicy
-SignaturePolicy
to check- Returns:
- TRUE if the
SignaturePolicy
can be validated, FALSE otherwise
-
validate
Description copied from interface:SignaturePolicyValidator
Performs aSignaturePolicy
validation- Parameters:
signaturePolicy
-SignaturePolicy
to be validated- Returns:
SignaturePolicyValidationResult
-
getDigestAfterTransforms
public Digest getDigestAfterTransforms(DSSDocument policyDocument, DigestAlgorithm digestAlgorithm, Element transformsElement) throws org.apache.xml.security.exceptions.XMLSecurityException, IOException Computes Digests after processing of giventransformsElement
- Parameters:
policyDocument
-DSSDocument
policy contentdigestAlgorithm
-DigestAlgorithm
to use to calculate digesttransformsElement
-Element
ds:Transforms element- Returns:
Digest
computed on octets obtained after performing of transforms- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
- if an exception occurs during transforms processingIOException
- if an exception occurs during transforms processing result reading
-