Interface SignaturePolicyValidator
- All Known Implementing Classes:
AbstractSignaturePolicyValidator
,BasicASNSignaturePolicyValidator
,EmptySignaturePolicyValidator
,NonASN1SignaturePolicyValidator
,XMLSignaturePolicyValidator
,ZeroHashSignaturePolicyValidator
public interface SignaturePolicyValidator
Performs a validation of a SignaturePolicy
-
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
-
Method Details
-
canValidate
Checks if the SignaturePolicy can be validated- Parameters:
signaturePolicy
-SignaturePolicy
to check- Returns:
- TRUE if the
SignaturePolicy
can be validated, FALSE otherwise
-
validate
Performs aSignaturePolicy
validation- Parameters:
signaturePolicy
-SignaturePolicy
to be validated- Returns:
SignaturePolicyValidationResult
-
getComputedDigest
ReturnsDigest
on the computed SignaturePolicy's content- Parameters:
policyDocument
-DSSDocument
the policy contentdigestAlgorithm
-DigestAlgorithm
to use- Returns:
Digest
-