Package eu.europa.esig.dss.enumerations
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 Summary
Enum Constants Enum Constant Description INVALIDThe signature of the token is invalidNOT_EVALUATEDThe signature of the token is not evaluated yetVALIDThe signature of the token is valid (signing certificate found successfully)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SignatureValidityget(Boolean isValid)Returns the SignatureValidity type matching the given valuestatic SignatureValidityvalueOf(String name)Returns the enum constant of this type with the specified name.static SignatureValidity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static SignatureValidity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SignatureValidity c : SignatureValidity.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
get
public static SignatureValidity get(Boolean isValid)
Returns the SignatureValidity type matching the given value- Parameters:
isValid-Booleantype of the signatureValidity to request- Returns:
SignatureValidity
-
-