Class SignaturePolicyValidationResult
java.lang.Object
eu.europa.esig.dss.validation.policy.SignaturePolicyValidationResult
Contains results of a
SignaturePolicy validation-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionvoidThis 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-friendlyStringwith obtained error messages occurred during the validation processbooleanReturns if the signature policy is ASN.1 processablebooleanReturns if the DigestAlgorithm defined in the policy and used for the validation do matchbooleanReturns if the signature policy has been validated successfullybooleanReturns if the signature policy has been obtained successfullyvoidsetAsn1Processable(boolean asn1Processable) Sets if the signature policy is ASN.1 processablevoidSets Digest that have been computed on the extracted signature policy documentvoidsetDigestAlgorithmsEqual(boolean digestAlgorithmsEqual) Sets if the digest algorithms matchvoidsetDigestValid(boolean digestValid) Sets if the signature policy is validvoidsetIdentified(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:
Digestthat 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-friendlyStringwith obtained error messages occurred during the validation process- Returns:
Stringvalidation errors
-