Class SignatureCryptographicVerification

java.lang.Object
eu.europa.esig.dss.validation.SignatureCryptographicVerification
All Implemented Interfaces:
Serializable

public class SignatureCryptographicVerification extends Object implements Serializable
Contains a result if a signature cryptographic validation
See Also:
  • Constructor Details

    • SignatureCryptographicVerification

      public SignatureCryptographicVerification()
      Default constructor instantiating object with null values
  • Method Details

    • isReferenceDataFound

      public boolean isReferenceDataFound()
      Gets if (all) references data found
      Returns:
      if (all) references data found
    • setReferenceDataFound

      public void setReferenceDataFound(boolean referenceDataFound)
      Sets if (all) references data found
      Parameters:
      referenceDataFound - if (all) references data found
    • isReferenceDataIntact

      public boolean isReferenceDataIntact()
      Gets if (all) references data intact
      Returns:
      if (all) references data intact
    • setReferenceDataIntact

      public void setReferenceDataIntact(boolean referenceDataIntact)
      Sets if (all) references data intact
      Parameters:
      referenceDataIntact - if (all) references data intact
    • isSignatureIntact

      public boolean isSignatureIntact()
      Gets if the SignatureValue is valid
      Returns:
      if the SignatureValue is valid
    • setSignatureIntact

      public void setSignatureIntact(boolean signatureIntact)
      Sets if the SignatureValue is valid
      Parameters:
      signatureIntact - if the SignatureValue is valid
    • isSignatureValid

      public boolean isSignatureValid()
      Returns if the signature is valid. This means that the referenceDataFound and referenceDataIntact and signatureValid are true
      Returns:
      TRUE if the signature is valid, FALSE otherwise
    • getErrorMessage

      public String getErrorMessage()
      Returns a list of error messages obtained during signature cryptographic verification
      Returns:
      String error message, empty string "" is signature is valid
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Sets the error message (adds the message to error list)
      Parameters:
      errorMessage - String to add
    • setErrorMessages

      public void setErrorMessages(List<String> errorMessages)
      Sets all error messages (adds the messages to error list)
      Parameters:
      errorMessages - a list of String messages
    • toString

      public String toString()
      Overrides:
      toString in class Object