public static enum TlsConfiguration.Permit extends java.lang.Enum<TlsConfiguration.Permit>
Enum Constant and Description |
---|
HOSTNAME_MISMATCH
A connection will accept a server certificate whose common name
(CN) does not match the URL's domain.
|
INSECURE_CONNECTIONS
An unencrypted (http) connection is permitted.
|
SELF_SIGNED_CERTIFICATES
A connection will accept a self signed server certificate.
|
Modifier and Type | Method and Description |
---|---|
static TlsConfiguration.Permit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TlsConfiguration.Permit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TlsConfiguration.Permit INSECURE_CONNECTIONS
public static final TlsConfiguration.Permit SELF_SIGNED_CERTIFICATES
public static final TlsConfiguration.Permit HOSTNAME_MISMATCH
public static TlsConfiguration.Permit[] values()
for (TlsConfiguration.Permit c : TlsConfiguration.Permit.values()) System.out.println(c);
public static TlsConfiguration.Permit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null