public enum MailTransportSecurityType extends Enum<MailTransportSecurityType>
Java class for MailTransportSecurityType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="MailTransportSecurityType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="none"/> <enumeration value="starttlsEnabled"/> <enumeration value="starttlsRequired"/> <enumeration value="ssl"/> </restriction> </simpleType>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final MailTransportSecurityType NONE
public static final MailTransportSecurityType STARTTLS_ENABLED
public static final MailTransportSecurityType STARTTLS_REQUIRED
public static final MailTransportSecurityType SSL
public static MailTransportSecurityType[] values()
for (MailTransportSecurityType c : MailTransportSecurityType.values()) System.out.println(c);
public static MailTransportSecurityType 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 nullpublic String value()
public static MailTransportSecurityType fromValue(String v)
Copyright © 2020 Evolveum. All rights reserved.