Enum Class StartTLSOption

java.lang.Object
java.lang.Enum<StartTLSOption>
one.jpro.platform.mail.StartTLSOption
All Implemented Interfaces:
Serializable, Comparable<StartTLSOption>, Constable

public enum StartTLSOption extends Enum<StartTLSOption>
Possible options for a secure connection using TLS protocol.
Author:
Besmir Beqiri
  • Enum Constant Details

    • DISABLED

      public static final StartTLSOption DISABLED
      StartTLS is disabled and will not be used in any case.
    • ENABLED

      public static final StartTLSOption ENABLED
      StartTLS is enabled and will be used if the server supports it.
    • REQUIRED

      public static final StartTLSOption REQUIRED
      StartTLS is required and will be used if the server supports it and the send operation will fail otherwise.
  • Method Details

    • values

      public static StartTLSOption[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StartTLSOption valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null