Enum Class RevocationReason

java.lang.Object
java.lang.Enum<RevocationReason>
eu.europa.esig.dss.enumerations.RevocationReason
All Implemented Interfaces:
UriBasedEnum, Serializable, Comparable<RevocationReason>, Constable

public enum RevocationReason extends Enum<RevocationReason> implements UriBasedEnum
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 Details

    • UNSPECIFIED

      public static final RevocationReason UNSPECIFIED
      unspecified
    • KEY_COMPROMISE

      public static final RevocationReason KEY_COMPROMISE
      keyCompromise
    • CA_COMPROMISE

      public static final RevocationReason CA_COMPROMISE
      cACompromise
    • AFFILIATION_CHANGED

      public static final RevocationReason AFFILIATION_CHANGED
      affiliationChanged
    • SUPERSEDED

      public static final RevocationReason SUPERSEDED
      superseded
    • CESSATION_OF_OPERATION

      public static final RevocationReason CESSATION_OF_OPERATION
      cessationOfOperation
    • CERTIFICATE_HOLD

      public static final RevocationReason CERTIFICATE_HOLD
      certificateHold
    • REMOVE_FROM_CRL

      public static final RevocationReason REMOVE_FROM_CRL
      removeFromCRL
    • PRIVILEGE_WITHDRAWN

      public static final RevocationReason PRIVILEGE_WITHDRAWN
      privilegeWithdrawn
    • AA_COMPROMISE

      public static final RevocationReason AA_COMPROMISE
      aACompromise
  • Method Details

    • values

      public static RevocationReason[] 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 RevocationReason 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
    • getShortName

      public String getShortName()
      Returns the name of the RevocationReason
      Returns:
      String
    • getUri

      public String getUri()
      Description copied from interface: UriBasedEnum
      Returns a URI
      Specified by:
      getUri in interface UriBasedEnum
      Returns:
      String
    • getValue

      public int getValue()
      Returns the value of the RevocationReason
      Returns:
      int value
    • fromInt

      public static RevocationReason fromInt(int value)
      Returns a RevocationReason based on the given integer value
      Parameters:
      value - to check
      Returns:
      RevocationReason
    • fromValue

      public static RevocationReason fromValue(String value)
      Returns a RevocationReason based on the given label String value
      Parameters:
      value - String to check
      Returns:
      RevocationReason