public static enum Connection.TLSPolicy extends Enum<Connection.TLSPolicy>
| Enum Constant and Description |
|---|
disabled
TLS is not available.
|
legacyMode
A policy that requires connections to be encrypted immediately (as opposed to the
'required' policy, that allows for an initially unencrypted connection to become
encrypted through StartTLS.
|
optional
TLS is optional to interact with the server.
|
required
TLS is required to interact with the server.
|
| Modifier and Type | Method and Description |
|---|---|
static Connection.TLSPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connection.TLSPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection.TLSPolicy required
public static final Connection.TLSPolicy optional
public static final Connection.TLSPolicy disabled
public static final Connection.TLSPolicy legacyMode
public static Connection.TLSPolicy[] values()
for (Connection.TLSPolicy c : Connection.TLSPolicy.values()) System.out.println(c);
public static Connection.TLSPolicy 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 nullCopyright © 2003-2008 Jive Software.