Enum OCSPRespStatus
- java.lang.Object
-
- java.lang.Enum<OCSPRespStatus>
-
- eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPRespStatus
-
- All Implemented Interfaces:
Serializable,Comparable<OCSPRespStatus>
public enum OCSPRespStatus extends Enum<OCSPRespStatus>
This enum encapsulates constants defined by BouncyCastle and offers a method to parse an int without exception
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_ERRORInternal error in issuerMALFORMED_REQUESTIllegal confirmation requestSIG_REQUIREDMust sign the requestSUCCESSFULResponse has valid confirmationsTRY_LATERTry again laterUNAUTHORIZEDRequest unauthorizedUNKNOWN_STATUS(4) is not used
-
Method Summary
Modifier and Type Method Description static OCSPRespStatusfromInt(int value)intgetStatusCode()static OCSPRespStatusvalueOf(String name)Returns 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 Detail
-
SUCCESSFUL
public static final OCSPRespStatus SUCCESSFUL
Response has valid confirmations
-
MALFORMED_REQUEST
public static final OCSPRespStatus MALFORMED_REQUEST
Illegal confirmation request
-
INTERNAL_ERROR
public static final OCSPRespStatus INTERNAL_ERROR
Internal error in issuer
-
TRY_LATER
public static final OCSPRespStatus TRY_LATER
Try again later
-
UNKNOWN_STATUS
public static final OCSPRespStatus UNKNOWN_STATUS
(4) is not used
-
SIG_REQUIRED
public static final OCSPRespStatus SIG_REQUIRED
Must sign the request
-
UNAUTHORIZED
public static final OCSPRespStatus UNAUTHORIZED
Request unauthorized
-
-
Method Detail
-
values
public static OCSPRespStatus[] 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 OCSPRespStatus 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 nameNullPointerException- if the argument is null
-
fromInt
public static OCSPRespStatus fromInt(int value)
-
getStatusCode
public int getStatusCode()
-
-