Enum OCSPRespStatus
- All Implemented Interfaces:
Serializable,Comparable<OCSPRespStatus>
This enum encapsulates constants defined by BouncyCastle and offers a method to parse an int without exception
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInternal error in issuerIllegal confirmation requestMust sign the requestResponse has valid confirmationsTry again laterRequest unauthorized(4) is not used -
Method Summary
Modifier and TypeMethodDescriptionstatic OCSPRespStatusfromInt(int value) Returns a correspondingOCSPRespStatusfor the int value codeintReturns the status codestatic OCSPRespStatusReturns the enum constant of this type with the specified name.static OCSPRespStatus[]values()Returns an array containing the constants of this enum type, 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 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
-
fromInt
Returns a correspondingOCSPRespStatusfor the int value code- Parameters:
value- int code- Returns:
OCSPRespStatus
-
getStatusCode
public int getStatusCode()Returns the status code- Returns:
- status code
-