public enum ConnectionSecurity extends java.lang.Enum<ConnectionSecurity>
Enum Constant and Description |
---|
SSL |
STARTTLS_REQUIRED |
STARTTLS_WHEN_AVAILABLE |
UNENCRYPTED |
Modifier and Type | Method and Description |
---|---|
static ConnectionSecurity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionSecurity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionSecurity UNENCRYPTED
public static final ConnectionSecurity STARTTLS_WHEN_AVAILABLE
public static final ConnectionSecurity STARTTLS_REQUIRED
public static final ConnectionSecurity SSL
public static ConnectionSecurity[] values()
for (ConnectionSecurity c : ConnectionSecurity.values()) System.out.println(c);
public static ConnectionSecurity 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