public static enum SmtpConfiguration.TransportSecurity extends java.lang.Enum<SmtpConfiguration.TransportSecurity>
| Enum Constant and Description |
|---|
None
This mode shall only be used for automatic tests.
|
SSL_TLS
The connection will be established using SSL/TLS right from the start.
|
STARTTLS
A plain-text connection will be established and be switched to TLS.
|
| Modifier and Type | Method and Description |
|---|---|
static SmtpConfiguration.TransportSecurity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SmtpConfiguration.TransportSecurity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmtpConfiguration.TransportSecurity None
public static final SmtpConfiguration.TransportSecurity SSL_TLS
public static final SmtpConfiguration.TransportSecurity STARTTLS
SSL_TLS.
An SMTP client using this transport security should require the switch to TLS and
should not continue if the plain-text connection cannot be switched to TLS.public static SmtpConfiguration.TransportSecurity[] values()
for (SmtpConfiguration.TransportSecurity c : SmtpConfiguration.TransportSecurity.values()) System.out.println(c);
public static SmtpConfiguration.TransportSecurity 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