Enum SignatureValidity

java.lang.Object
java.lang.Enum<SignatureValidity>
eu.europa.esig.dss.enumerations.SignatureValidity
All Implemented Interfaces:
Serializable, Comparable<SignatureValidity>

public enum SignatureValidity extends Enum<SignatureValidity>
Defines result of signature validation for a token
  • Enum Constant Details

    • VALID

      public static final SignatureValidity VALID
      The signature of the token is valid (signing certificate found successfully)
    • INVALID

      public static final SignatureValidity INVALID
      The signature of the token is invalid
    • NOT_EVALUATED

      public static final SignatureValidity NOT_EVALUATED
      The signature of the token is not evaluated yet
  • Method Details

    • values

      public static SignatureValidity[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SignatureValidity valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public static SignatureValidity get(Boolean isValid)
      Returns the SignatureValidity type matching the given value
      Parameters:
      isValid - Boolean type of the signatureValidity to request
      Returns:
      SignatureValidity