Package java.security.cert
Enum CRLReason
- java.lang.Object
-
- java.lang.Enum<CRLReason>
-
- java.security.cert.CRLReason
-
- All Implemented Interfaces:
Serializable,Comparable<CRLReason>
public enum CRLReason extends Enum<CRLReason> implements Comparable<CRLReason>, Serializable
The reason a CRL entry was revoked. See RFC 3280 for more information.- Since:
- 1.7
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AA_COMPROMISEAFFILIATION_CHANGEDCA_COMPROMISECERTIFICATE_HOLDCESSATION_OF_OPERATIONKEY_COMPROMISEPRIVILEGE_WITHDRAWNREMOVE_FROM_CRLSUPERSEDEDUNSPECIFIEDUNUSED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CRLReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static CRLReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, getSharedConstants, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final CRLReason UNSPECIFIED
-
KEY_COMPROMISE
public static final CRLReason KEY_COMPROMISE
-
CA_COMPROMISE
public static final CRLReason CA_COMPROMISE
-
AFFILIATION_CHANGED
public static final CRLReason AFFILIATION_CHANGED
-
SUPERSEDED
public static final CRLReason SUPERSEDED
-
CESSATION_OF_OPERATION
public static final CRLReason CESSATION_OF_OPERATION
-
CERTIFICATE_HOLD
public static final CRLReason CERTIFICATE_HOLD
-
UNUSED
public static final CRLReason UNUSED
-
REMOVE_FROM_CRL
public static final CRLReason REMOVE_FROM_CRL
-
PRIVILEGE_WITHDRAWN
public static final CRLReason PRIVILEGE_WITHDRAWN
-
AA_COMPROMISE
public static final CRLReason AA_COMPROMISE
-
-
Method Detail
-
values
public static CRLReason[] 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 (CRLReason c : CRLReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CRLReason 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
-
-