eu.emi.security.authn.x509
Enum OCSPCheckingMode

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

public enum OCSPCheckingMode
extends Enum<OCSPCheckingMode>

Defines On-line Certificate Status Protocol usage mode.

Author:
K. Benedyczak

Enum Constant Summary
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
static OCSPCheckingMode valueOf(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.


IGNORE

public static final OCSPCheckingMode IGNORE
Do not use OCSP.

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(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


Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.