Package eu.europa.esig.dss.enumerations
Enum 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 INVALID
The signature of the token is invalidNOT_EVALUATED
The signature of the token is not evaluated yetVALID
The signature of the token is valid (signing certificate found successfully) -
Method Summary
Modifier and Type Method Description static SignatureValidity
get(Boolean isValid)
Returns the SignatureValidity type matching the given valuestatic SignatureValidity
valueOf(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 Details
-
VALID
The signature of the token is valid (signing certificate found successfully) -
INVALID
The signature of the token is invalid -
NOT_EVALUATED
The signature of the token is not evaluated yet
-
-
Method Details
-
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
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
Returns the SignatureValidity type matching the given value- Parameters:
isValid
-Boolean
type of the signatureValidity to request- Returns:
SignatureValidity
-