Package eu.europa.esig.dss.enumerations
Enum RevocationReason
- All Implemented Interfaces:
UriBasedEnum
,Serializable
,Comparable<RevocationReason>
public enum RevocationReason extends Enum<RevocationReason> implements UriBasedEnum
This enum is used to get String value of CRLReason
The CRLReason enumeration.
CRLReason ::= ENUMERATED { unspecified (0), keyCompromise (1), cACompromise (2), affiliationChanged (3), superseded (4), cessationOfOperation (5), certificateHold (6), removeFromCRL (8), privilegeWithdrawn (9), aACompromise (10) }
-
Enum Constant Summary
Enum Constants Enum Constant Description AA_COMPROMISE
AFFILIATION_CHANGED
CA_COMPROMISE
CERTIFICATE_HOLD
CESSATION_OF_OPERATION
KEY_COMPROMISE
PRIVILEGE_WITHDRAWN
REMOVE_FROM_CRL
SUPERSEDED
UNSPECIFIED
-
Method Summary
Modifier and Type Method Description static RevocationReason
fromInt(int value)
String
getShortName()
String
getUri()
int
getValue()
static RevocationReason
valueOf(String name)
Returns the enum constant of this type with the specified name.static RevocationReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
-
getShortName
-
getUri
- Specified by:
getUri
in interfaceUriBasedEnum
-
getValue
public int getValue() -
fromInt
-