public static enum ConnectionConfiguration.SecurityMode extends Enum<ConnectionConfiguration.SecurityMode>
Enum Constant and Description |
---|
disabled
Security via TLS encryption is disabled and only un-encrypted connections will
be used.
|
ifpossible
Security via TLS encryption is used whenever it's available.
|
required
Security via TLS encryption is required in order to connect.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionConfiguration.SecurityMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionConfiguration.SecurityMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionConfiguration.SecurityMode required
public static final ConnectionConfiguration.SecurityMode ifpossible
Do not use this setting unless you can't use required
. An attacker could easily perform a
Man-in-the-middle attack and prevent TLS from being used, leaving you with an unencrypted (and
unauthenticated) connection.
public static final ConnectionConfiguration.SecurityMode disabled
public static ConnectionConfiguration.SecurityMode[] values()
for (ConnectionConfiguration.SecurityMode c : ConnectionConfiguration.SecurityMode.values()) System.out.println(c);
public static ConnectionConfiguration.SecurityMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null