Class BasicASNSignaturePolicyValidator
java.lang.Object
eu.europa.esig.dss.validation.policy.AbstractSignaturePolicyValidator
eu.europa.esig.dss.validation.policy.BasicASNSignaturePolicyValidator
- All Implemented Interfaces:
SignaturePolicyValidator
Default implementation, checks only the hash of the policy
Note : this implementation is not registered as a service to allow overriding
- Author:
- davyd.santos
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.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
-
BasicASNSignaturePolicyValidator
public BasicASNSignaturePolicyValidator()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
-