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 Details

    • 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 Details

    • 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 name
      NullPointerException - if the argument is null
    • fromInt

      public static OCSPRespStatus fromInt(int value)
      Returns a corresponding OCSPRespStatus for the int value code
      Parameters:
      value - int code
      Returns:
      OCSPRespStatus
    • getStatusCode

      public int getStatusCode()
      Returns the status code
      Returns:
      status code