Enum Class OCSPRespStatus
- All Implemented Interfaces:
Serializable
,Comparable<OCSPRespStatus>
,Constable
This enum encapsulates constants defined by BouncyCastle and offers a method to parse an int without exception
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInternal error in issuerIllegal confirmation requestMust sign the requestResponse has valid confirmationsTry again laterRequest unauthorized(4) is not used -
Method Summary
Modifier and TypeMethodDescriptionstatic OCSPRespStatus
fromInt
(int value) Returns a correspondingOCSPRespStatus
for the int value codeint
Returns the status codestatic OCSPRespStatus
Returns the enum constant of this class with the specified name.static OCSPRespStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESSFUL
Response has valid confirmations -
MALFORMED_REQUEST
Illegal confirmation request -
INTERNAL_ERROR
Internal error in issuer -
TRY_LATER
Try again later -
UNKNOWN_STATUS
(4) is not used -
SIG_REQUIRED
Must sign the request -
UNAUTHORIZED
Request unauthorized
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromInt
Returns a correspondingOCSPRespStatus
for the int value code- Parameters:
value
- int code- Returns:
OCSPRespStatus
-
getStatusCode
public int getStatusCode()Returns the status code- Returns:
- status code
-