Package eu.europa.esig.dss.enumerations
Enum Class RevocationReason
- All Implemented Interfaces:
UriBasedEnum,Serializable,Comparable<RevocationReason>,Constable
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)
}
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionaACompromiseaffiliationChangedcACompromisecertificateHoldcessationOfOperationkeyCompromiseprivilegeWithdrawnremoveFromCRLsupersededunspecified -
Method Summary
Modifier and TypeMethodDescriptionstatic RevocationReasonfromInt(int value) Returns aRevocationReasonbased on the given integer valuestatic RevocationReasonReturns aRevocationReasonbased on the given label String valueReturns the name of the RevocationReasongetUri()Returns a URIintgetValue()Returns the value of the RevocationReasonstatic RevocationReasonReturns the enum constant of this class with the specified name.static RevocationReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
unspecified -
KEY_COMPROMISE
keyCompromise -
CA_COMPROMISE
cACompromise -
AFFILIATION_CHANGED
affiliationChanged -
SUPERSEDED
superseded -
CESSATION_OF_OPERATION
cessationOfOperation -
CERTIFICATE_HOLD
certificateHold -
REMOVE_FROM_CRL
removeFromCRL -
PRIVILEGE_WITHDRAWN
privilegeWithdrawn -
AA_COMPROMISE
aACompromise
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getShortName
-
getUri
Description copied from interface:UriBasedEnumReturns a URI- Specified by:
getUriin interfaceUriBasedEnum- Returns:
String
-
getValue
public int getValue()Returns the value of the RevocationReason- Returns:
- int value
-
fromInt
Returns aRevocationReasonbased on the given integer value- Parameters:
value- to check- Returns:
RevocationReason
-
fromValue
Returns aRevocationReasonbased on the given label String value- Parameters:
value-Stringto check- Returns:
RevocationReason
-