public enum SmtpSecurity extends java.lang.Enum<SmtpSecurity>
| Enum Constant and Description |
|---|
NONE
An unencrypted connection will be used
|
SSL
Use the SSL protocol
|
STARTTLS
Use the STARTTLS protocol
|
| Modifier and Type | Method and Description |
|---|---|
static SmtpSecurity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SmtpSecurity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmtpSecurity NONE
public static final SmtpSecurity STARTTLS
public static final SmtpSecurity SSL
public static SmtpSecurity[] values()
for (SmtpSecurity c : SmtpSecurity.values()) System.out.println(c);
public static SmtpSecurity 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