Enum Class CrlReason

java.lang.Object
java.lang.Enum<CrlReason>
zeroecho.pkix.crl.CrlReason
All Implemented Interfaces:
Serializable, Comparable<CrlReason>, Constable

public enum CrlReason extends Enum<CrlReason>
The X.509 CRL reasonCode values (RFC 5280, 5.3.1), each carrying its DER enumerated code.
  • Enum Constant Details

    • UNSPECIFIED

      public static final CrlReason UNSPECIFIED
      unspecified (0).
    • KEY_COMPROMISE

      public static final CrlReason KEY_COMPROMISE
      keyCompromise (1).
    • CA_COMPROMISE

      public static final CrlReason CA_COMPROMISE
      cACompromise (2).
    • AFFILIATION_CHANGED

      public static final CrlReason AFFILIATION_CHANGED
      affiliationChanged (3).
    • SUPERSEDED

      public static final CrlReason SUPERSEDED
      superseded (4).
    • CESSATION_OF_OPERATION

      public static final CrlReason CESSATION_OF_OPERATION
      cessationOfOperation (5).
    • CERTIFICATE_HOLD

      public static final CrlReason CERTIFICATE_HOLD
      certificateHold (6).
    • REMOVE_FROM_CRL

      public static final CrlReason REMOVE_FROM_CRL
      removeFromCRL (8).
    • PRIVILEGE_WITHDRAWN

      public static final CrlReason PRIVILEGE_WITHDRAWN
      privilegeWithdrawn (9).
    • AA_COMPROMISE

      public static final CrlReason AA_COMPROMISE
      aACompromise (10).
  • Method Details

    • values

      public static CrlReason[] 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

      public static CrlReason valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • code

      public int code()
      Returns the DER enumerated reason code.
      Returns:
      the reason code