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|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
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)
Copyright © 2022 Eclipse. All rights reserved.