Enum MailTransportSecurityType
- java.lang.Object
-
- java.lang.Enum<MailTransportSecurityType>
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.MailTransportSecurityType
-
- All Implemented Interfaces:
Serializable
,Comparable<MailTransportSecurityType>
public enum MailTransportSecurityType extends Enum<MailTransportSecurityType>
How to ensure transport-level security when sending the message. SSL/STARTTLS settings are currently EXPERIMENTAL (e.g. there is no support for setting certificate validation-related properties; default behavior of javax.mail implementation is used).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
No attempts to ensure transport security.SSL
Employs (older) mechanism of using SSL/TLS - wraps whole SMTP connection in SSL/TLS.STARTTLS_ENABLED
Uses STARTTLS feature, if available on the server.STARTTLS_REQUIRED
Uses STARTTLS feature.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MailTransportSecurityType
fromValue(String v)
String
value()
static MailTransportSecurityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MailTransportSecurityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final MailTransportSecurityType NONE
No attempts to ensure transport security.
-
STARTTLS_ENABLED
public static final MailTransportSecurityType STARTTLS_ENABLED
Uses STARTTLS feature, if available on the server.
-
STARTTLS_REQUIRED
public static final MailTransportSecurityType STARTTLS_REQUIRED
Uses STARTTLS feature. If it is not available on the server, the message sending fails.
-
SSL
public static final MailTransportSecurityType SSL
Employs (older) mechanism of using SSL/TLS - wraps whole SMTP connection in SSL/TLS.
-
-
Method Detail
-
values
public static MailTransportSecurityType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MailTransportSecurityType c : MailTransportSecurityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MailTransportSecurityType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static MailTransportSecurityType fromValue(String v)
-
-