Enum OCSPCheckingMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OCSPCheckingMode>

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

      Enum Constants 
      Enum Constant Description
      IF_AVAILABLE
      Use OCSP for each certificate if a responder is available.
      IGNORE
      Do not use OCSP.
      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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static OCSPCheckingMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static OCSPCheckingMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
    • Method Detail

      • values

        public static OCSPCheckingMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OCSPCheckingMode c : OCSPCheckingMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OCSPCheckingMode valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null