public enum SecurityRequirement extends Enum<SecurityRequirement>
Enum Constant and Description |
---|
PLAIN |
SSLTLS |
STARTTLS |
UNTRUSTED_SSLTLS |
UNTRUSTED_STARTTLS |
Modifier and Type | Method and Description |
---|---|
static SecurityRequirement |
getByName(String s)
Gets the security requirement reflectted by the name.
|
static SecurityRequirement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecurityRequirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityRequirement PLAIN
public static final SecurityRequirement UNTRUSTED_STARTTLS
public static final SecurityRequirement STARTTLS
public static final SecurityRequirement UNTRUSTED_SSLTLS
public static final SecurityRequirement SSLTLS
public static SecurityRequirement[] values()
for (SecurityRequirement c : SecurityRequirement.values()) System.out.println(c);
public static SecurityRequirement 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 static SecurityRequirement getByName(String s)
Gets the security requirement reflectted by the name.
s
- the name of the security requirementCopyright © 2023. All rights reserved.