Package no.digipost.security.cert
Enum RevocationReason
- java.lang.Object
-
- java.lang.Enum<RevocationReason>
-
- no.digipost.security.cert.RevocationReason
-
- All Implemented Interfaces:
Serializable,Comparable<RevocationReason>
public enum RevocationReason extends Enum<RevocationReason>
Reasons for revoking a certificate, as specified in RFC5280: tools.ietf.org/html/rfc5280#page-69
-
-
Enum Constant Summary
Enum Constants Enum Constant Description aACompromiseaffiliationChangedcACompromisecertificateHoldcessationOfOperationkeyCompromiseprivilegeWithdrawnremoveFromCRLsupersededUNKNOWNunspecifiedunused
-
Field Summary
Fields Modifier and Type Field Description intcode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RevocationReasonresolve(int code)StringtoString()static RevocationReasonvalueOf(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 Detail
-
unspecified
public static final RevocationReason unspecified
-
keyCompromise
public static final RevocationReason keyCompromise
-
cACompromise
public static final RevocationReason cACompromise
-
affiliationChanged
public static final RevocationReason affiliationChanged
-
superseded
public static final RevocationReason superseded
-
cessationOfOperation
public static final RevocationReason cessationOfOperation
-
certificateHold
public static final RevocationReason certificateHold
-
unused
public static final RevocationReason unused
-
removeFromCRL
public static final RevocationReason removeFromCRL
-
privilegeWithdrawn
public static final RevocationReason privilegeWithdrawn
-
aACompromise
public static final RevocationReason aACompromise
-
UNKNOWN
public static final RevocationReason UNKNOWN
-
-
Method Detail
-
values
public static RevocationReason[] 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 (RevocationReason c : RevocationReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RevocationReason 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
-
resolve
public static RevocationReason resolve(int code)
-
toString
public String toString()
- Overrides:
toStringin classEnum<RevocationReason>
-
-