Enum PKIStatus

java.lang.Object
java.lang.Enum<PKIStatus>
org.apache.harmony.security.x509.tsp.PKIStatus
All Implemented Interfaces:
Serializable, Comparable<PKIStatus>

public enum PKIStatus
extends Enum<PKIStatus>
Corresponds to PKIStatus structure. See RFC 3161 - Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP) http://www.ietf.org/rfc/rfc3161.txt) PKIStatus ::= INTEGER { granted (0), -- when the PKIStatus contains the value zero a TimeStampToken, as requested, is present. grantedWithMods (1), -- when the PKIStatus contains the value one a TimeStampToken, with modifications, is present. rejection (2), waiting (3), revocationWarning (4), -- this message contains a warning that a revocation is -- imminent revocationNotification (5) -- notification that a revocation has occurred }
  • Enum Constant Details

    • GRANTED

      public static final PKIStatus GRANTED
      TimeStampToken is present as requested
    • GRANTED_WITH_MODS

      public static final PKIStatus GRANTED_WITH_MODS
      TimeStampToken is present with modifications
    • REJECTION

      public static final PKIStatus REJECTION
      rejected
    • WAITING

      public static final PKIStatus WAITING
      waiting
    • REVOCATION_WARNING

      public static final PKIStatus REVOCATION_WARNING
      revocation time comes soon
    • REVOCATION_NOTIFICATION

      public static final PKIStatus REVOCATION_NOTIFICATION
      revoked
  • Method Details

    • values

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

      public static PKIStatus 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 name
      NullPointerException - if the argument is null
    • getStatus

      public int getStatus()
      Returns:
      int value of the status
    • getInstance

      public static PKIStatus getInstance​(int status)