public enum StarttlsOption extends Enum<StarttlsOption>
DISABLED means STARTTLS will not be used in any case
OPTIONS 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 a 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 StarttlsOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StarttlsOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StarttlsOption DISABLED
public static final StarttlsOption OPTIONAL
public static final StarttlsOption REQUIRED
public static StarttlsOption[] values()
for (StarttlsOption c : StarttlsOption.values()) System.out.println(c);
public static StarttlsOption 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 © 2015. All Rights Reserved.