-
Method Summary
-
Method Details
-
setSignature
Deprecated.
Sets the AdvancedSignature
containing a SignaturePolicy
to validate
NOTE: Deprecated, please use:
SignaturePolicy signaturePolicy = signature.getSignaturePolicy();
SignaturePolicyValidator.setSignaturePolicy(signaturePolicy);
- Parameters:
signature
- AdvancedSignature
-
setSignaturePolicy
Sets SignaturePolicy
to validate
- Parameters:
signaturePolicy
- SignaturePolicy
-
canValidate
boolean canValidate()
Checks if the SignaturePolicy can be validated
- Returns:
- TRUE if the
SignaturePolicy
can be validated, FALSE otherwise
-
validate
void validate()
Runs the validation
-
isIdentified
boolean isIdentified()
Gets if the SignaturePolicy
has been identified
- Returns:
- TRUE if the signature policy has been identified, FALSE otherwise
-
isStatus
boolean isStatus()
Gets if the SignaturePolicy
is valid
- Returns:
- TRUE if the signature policy is valid, FALSE otherwise
-
isAsn1Processable
boolean isAsn1Processable()
Gets if the SignaturePolicy
is ASN.1 processable
- Returns:
- TRUE if the signature policy is ASN.1, FALSE otherwise
-
isDigestAlgorithmsEqual
boolean isDigestAlgorithmsEqual()
Gets if digest value incorporated in the signature equals to the digest of the SignaturePolicy content
- Returns:
- TRUE if the digests equal, FALSE otherwise
-
getProcessingErrors
Returns a list of errors occurred during the SignaturePolicy
validation process when applicable
- Returns:
- a list of
String
error messages
-
getComputedDigest
Returns Digest
on the computed SignaturePolicy's content
- Parameters:
digestAlgorithm
- DigestAlgorithm
to use
- Returns:
Digest