public enum SecurityProtocol extends java.lang.Enum<SecurityProtocol>
Enum Constant | Description |
---|---|
PLAINTEXT |
Un-authenticated, non-encrypted channel
|
SASL_PLAINTEXT |
SASL authenticated, non-encrypted channel
|
SASL_SSL |
SASL authenticated, SSL channel
|
SSL |
SSL channel
|
Modifier and Type | Field | Description |
---|---|---|
short |
id |
The permanent and immutable id of a security protocol -- this can't change, and must match kafka.cluster.SecurityProtocol
|
java.lang.String |
name |
Name of the security protocol.
|
Modifier and Type | Method | Description |
---|---|---|
static SecurityProtocol |
forId(short id) |
|
static SecurityProtocol |
forName(java.lang.String name) |
Case insensitive lookup by protocol name
|
static java.util.List<java.lang.String> |
names() |
|
static SecurityProtocol |
valueOf(java.lang.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 SSL
public static final SecurityProtocol SASL_PLAINTEXT
public static final SecurityProtocol SASL_SSL
public final short id
public final java.lang.String name
public static SecurityProtocol[] values()
for (SecurityProtocol c : SecurityProtocol.values()) System.out.println(c);
public static SecurityProtocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.List<java.lang.String> names()
public static SecurityProtocol forId(short id)
public static SecurityProtocol forName(java.lang.String name)