Package eu.europa.esig.dss.enumerations
Enum RevocationReason
- All Implemented Interfaces:
UriBasedEnum
,Serializable
,Comparable<RevocationReason>
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 ConstantDescriptionaACompromiseaffiliationChangedcACompromisecertificateHoldcessationOfOperationkeyCompromiseprivilegeWithdrawnremoveFromCRLsupersededunspecified -
Method Summary
Modifier and TypeMethodDescriptionstatic RevocationReason
fromInt
(int value) Returns aRevocationReason
based on the given valueReturns the name of the RevocationReasongetUri()
Returns a URIint
getValue()
Returns the value of the RevocationReasonstatic RevocationReason
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
-
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 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
Returns the name of the RevocationReason- Returns:
String
-
getUri
Description copied from interface:UriBasedEnum
Returns a URI- Specified by:
getUri
in interfaceUriBasedEnum
- Returns:
String
-
getValue
public int getValue()Returns the value of the RevocationReason- Returns:
- int value
-
fromInt
Returns aRevocationReason
based on the given value- Parameters:
value
- to check- Returns:
RevocationReason
-