public enum SecurityProtocol extends Enum<SecurityProtocol>
| Enum Constant and Description |
|---|
PLAINTEXT |
SASL_PLAINTEXT |
SASL_SSL |
SSL |
| Modifier and Type | Method and Description |
|---|---|
static SecurityProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecurityProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityProtocol PLAINTEXT
public static final SecurityProtocol SASL_PLAINTEXT
public static final SecurityProtocol SASL_SSL
public static final SecurityProtocol SSL
public static SecurityProtocol[] values()
for (SecurityProtocol c : SecurityProtocol.values()) System.out.println(c);
public static SecurityProtocol 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 nullCopyright © 2025. All rights reserved.