Enum 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 Summary
Enum Constants Enum Constant Description GRANTEDTimeStampToken is present as requestedGRANTED_WITH_MODSTimeStampToken is present with modificationsREJECTIONrejectedREVOCATION_NOTIFICATIONrevokedREVOCATION_WARNINGrevocation time comes soonWAITINGwaiting -
Method Summary
Modifier and Type Method Description static PKIStatusgetInstance(int status)intgetStatus()static PKIStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static PKIStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GRANTED
TimeStampToken is present as requested -
GRANTED_WITH_MODS
TimeStampToken is present with modifications -
REJECTION
rejected -
WAITING
waiting -
REVOCATION_WARNING
revocation time comes soon -
REVOCATION_NOTIFICATION
revoked
-
-
Method Details
-
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
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
-
getStatus
public int getStatus()- Returns:
- int value of the status
-
getInstance
-