Package eu.europa.esig.dss.spi.policy
Class ZeroHashSignaturePolicyValidator
java.lang.Object
eu.europa.esig.dss.spi.policy.AbstractSignaturePolicyValidator
eu.europa.esig.dss.spi.policy.ZeroHashSignaturePolicyValidator
- All Implemented Interfaces:
SignaturePolicyValidator
Performs validation of a SignaturePolicy with zero-sigPolicyHash
See EN 319 122-1 "5.2.9 The signature-policy-identifier attribute and the SigPolicyQualifierInfo type"
-
Field Summary
Fields 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 validatedgetComputedDigest
(DSSDocument policyDocument, DigestAlgorithm digestAlgorithm) ReturnsDigest
on the computed SignaturePolicy's contentvalidate
(SignaturePolicy signaturePolicy) Performs aSignaturePolicy
validation
-
Constructor Details
-
ZeroHashSignaturePolicyValidator
public ZeroHashSignaturePolicyValidator()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
-
getComputedDigest
Description copied from interface:SignaturePolicyValidator
ReturnsDigest
on the computed SignaturePolicy's content- Specified by:
getComputedDigest
in interfaceSignaturePolicyValidator
- Overrides:
getComputedDigest
in classAbstractSignaturePolicyValidator
- Parameters:
policyDocument
-DSSDocument
the policy contentdigestAlgorithm
-DigestAlgorithm
to use- Returns:
Digest
-