Enum OCSPCheckingMode

java.lang.Object
java.lang.Enum<OCSPCheckingMode>
eu.emi.security.authn.x509.OCSPCheckingMode
All Implemented Interfaces:
Serializable, Comparable<OCSPCheckingMode>, java.lang.constant.Constable

public enum OCSPCheckingMode extends Enum<OCSPCheckingMode>
Defines On-line Certificate Status Protocol usage mode.
Author:
K. Benedyczak
  • Enum Constant Details

    • REQUIRE

      public static final OCSPCheckingMode REQUIRE
      Require, for each checked certificate, that at least one valid OCSP responder is defined and that at least one responder of those defined returns a correct certificate status. If all OCSP responders return error or unknown status, the last one received is treated as a critical validation error. Not suggested, unless it is guaranteed that well configured responder(s) is(are) defined and can handle all queries without timeouts.
    • IF_AVAILABLE

      public static final OCSPCheckingMode IF_AVAILABLE
      Use OCSP for each certificate if a responder is available. OCSP 'unknown' status and query errors (as timeout) do not cause the validation to fail. Also a lack of defined responder doesn't cause the validation to fail.
    • IGNORE

      public static final OCSPCheckingMode IGNORE
      Do not use OCSP.
  • Method Details

    • values

      public static OCSPCheckingMode[] 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 OCSPCheckingMode 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