Class SignaturePolicyValidationResult
java.lang.Object
eu.europa.esig.dss.validation.policy.SignaturePolicyValidationResult
Contains results of a
SignaturePolicy
validation-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method allows to add a new error message occurred during the validationReturns Digest that have been computed on the obtained signature policy document NOTE: can return NULL if a validator was not able to compute the digestReturns a list of error messages occurred in the validation processReturns a user-friendlyString
with obtained error messages occurred during the validation processboolean
Returns if the signature policy is ASN.1 processableboolean
Returns if the DigestAlgorithm defined in the policy and used for the validation do matchboolean
Returns if the signature policy has been validated successfullyboolean
Returns if the signature policy has been obtained successfullyvoid
setAsn1Processable
(boolean asn1Processable) Sets if the signature policy is ASN.1 processablevoid
Sets Digest that have been computed on the extracted signature policy documentvoid
setDigestAlgorithmsEqual
(boolean digestAlgorithmsEqual) Sets if the digest algorithms matchvoid
setDigestValid
(boolean digestValid) Sets if the signature policy is validvoid
setIdentified
(boolean identified) Sets if the signature policy has been obtained successfully
-
Constructor Details
-
SignaturePolicyValidationResult
public SignaturePolicyValidationResult()Default constructor instantiating object with null values
-
-
Method Details
-
isIdentified
public boolean isIdentified()Returns if the signature policy has been obtained successfully- Returns:
- TRUE if the signature policy has been identified, FALSE otherwise
-
setIdentified
public void setIdentified(boolean identified) Sets if the signature policy has been obtained successfully- Parameters:
identified
- if the signature policy has been identified
-
isDigestValid
public boolean isDigestValid()Returns if the signature policy has been validated successfully- Returns:
- TRUE if the signature policy is valid, FALSE otherwise
-
setDigestValid
public void setDigestValid(boolean digestValid) Sets if the signature policy is valid- Parameters:
digestValid
- if the signature policy is valid
-
isAsn1Processable
public boolean isAsn1Processable()Returns if the signature policy is ASN.1 processable- Returns:
- TRUE if the policy of ASN.1 encoded format, FALSE otherwise
-
setAsn1Processable
public void setAsn1Processable(boolean asn1Processable) Sets if the signature policy is ASN.1 processable- Parameters:
asn1Processable
- if the policy of ASN.1 encoded format
-
isDigestAlgorithmsEqual
public boolean isDigestAlgorithmsEqual()Returns if the DigestAlgorithm defined in the policy and used for the validation do match- Returns:
- TRUE if the digest algorithms match, FALSE otherwise
-
setDigestAlgorithmsEqual
public void setDigestAlgorithmsEqual(boolean digestAlgorithmsEqual) Sets if the digest algorithms match- Parameters:
digestAlgorithmsEqual
- if the digest algorithms match
-
getDigest
Returns Digest that have been computed on the obtained signature policy document NOTE: can return NULL if a validator was not able to compute the digest- Returns:
Digest
that have been computed in a signature policy document
-
setDigest
Sets Digest that have been computed on the extracted signature policy document- Parameters:
digest
-Digest
-
getErrors
Returns a list of error messages occurred in the validation process- Returns:
- a map of error keys and messages
-
addError
This method allows to add a new error message occurred during the validation -
getProcessingErrors
Returns a user-friendlyString
with obtained error messages occurred during the validation process- Returns:
String
validation errors
-