public enum StartTLSOptions extends Enum<StartTLSOptions>
DISABLED means STARTTLS will not be used in any case
OPTIONAL means STARTTLS will be used if the server supports it and a plain connection will be used otherwise; please note that this option is not as secure as it seems since a MITM attacker can remove the STARTTLS line from the capabilities reply.
REQUIRED means that STARTTLS will be used if the server supports it and the send operation will fail otherwise
Modifier and Type | Method and Description |
---|---|
static StartTLSOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StartTLSOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StartTLSOptions DISABLED
public static final StartTLSOptions OPTIONAL
public static final StartTLSOptions REQUIRED
public static StartTLSOptions[] values()
for (StartTLSOptions c : StartTLSOptions.values()) System.out.println(c);
public static StartTLSOptions 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 © 2024 Eclipse. All rights reserved.