public enum SecurityProtocol extends Enum<SecurityProtocol>
| Enum Constant and Description |
|---|
PLAINTEXTUn-authenticated, non-encrypted channel |
SASL_PLAINTEXTSASL authenticated, non-encrypted channel |
SASL_SSLSASL authenticated, SSL channel |
SSLSSL channel |
| Modifier and Type | Field and Description |
|---|---|
short | idThe permanent and immutable id of a security protocol -- this can't change, and must match kafka.cluster.SecurityProtocol |
String | nameName of the security protocol. |
| Modifier and Type | Method and Description |
|---|---|
static SecurityProtocol | forId(short id) |
static SecurityProtocol | forName(String name)Case insensitive lookup by protocol name |
static List<String> | names() |
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 SSL
public static final SecurityProtocol SASL_PLAINTEXT
public static final SecurityProtocol SASL_SSL
public final short id
public final String name
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 nullpublic static SecurityProtocol forId(short id)
public static SecurityProtocol forName(String name)