public enum SmtpPort extends Enum<SmtpPort>
JavaMailSessionBuilderFactory.INSTANCE| Enum Constant and Description |
|---|
INSECURE |
LEGACY_SECURE
Legacy SSL used this port
|
MODERN_SECURE
Modern TLS uses this port
|
| Modifier and Type | Field and Description |
|---|---|
int |
port |
| Modifier and Type | Method and Description |
|---|---|
static SmtpPort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SmtpPort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmtpPort INSECURE
public static final SmtpPort LEGACY_SECURE
public static final SmtpPort MODERN_SECURE
public static SmtpPort[] values()
for (SmtpPort c : SmtpPort.values()) System.out.println(c);
public static SmtpPort 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 © 2013–2020. All rights reserved.