Enum ConfigurableX509TrustManager.TrustLevel
java.lang.Object
java.lang.Enum<ConfigurableX509TrustManager.TrustLevel>
org.archive.httpclient.ConfigurableX509TrustManager.TrustLevel
- All Implemented Interfaces:
Serializable,Comparable<ConfigurableX509TrustManager.TrustLevel>
- Enclosing class:
ConfigurableX509TrustManager
public static enum ConfigurableX509TrustManager.TrustLevel
extends Enum<ConfigurableX509TrustManager.TrustLevel>
- Version:
- $Id$
- Author:
- stack
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OPEN
Trust anything given us. Default setting.See e502. Disabling Certificate Validation in an HTTPS Connection from the java almanac for how to trust all.
-
LOOSE
Trust any valid cert including self-signed certificates. -
NORMAL
Normal jsse behavior. Seemingly any certificate that supplies valid chain of trust. -
STRICT
Strict trust. Ensure server has same name as cert DN.
-
-
Method Details
-
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
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
-