java.io.Serializable, java.lang.Comparable<SaslRpcServer.AuthMethod>@Evolving public static enum SaslRpcServer.AuthMethod extends java.lang.Enum<SaslRpcServer.AuthMethod>
| Enum Constant | Description |
|---|---|
DIGEST |
Deprecated.
|
KERBEROS |
|
PLAIN |
|
SIMPLE |
|
TOKEN |
| Modifier and Type | Field | Description |
|---|---|---|
byte |
code |
The code for this method.
|
java.lang.String |
mechanismName |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getMechanismName() |
Return the SASL mechanism name.
|
static SaslRpcServer.AuthMethod |
read(java.io.DataInput in) |
Read from in.
|
static SaslRpcServer.AuthMethod |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SaslRpcServer.AuthMethod[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(java.io.DataOutput out) |
Write to out.
|
public static final SaslRpcServer.AuthMethod SIMPLE
public static final SaslRpcServer.AuthMethod KERBEROS
@Deprecated public static final SaslRpcServer.AuthMethod DIGEST
public static final SaslRpcServer.AuthMethod TOKEN
public static final SaslRpcServer.AuthMethod PLAIN
public final byte code
public final java.lang.String mechanismName
public static SaslRpcServer.AuthMethod[] values()
for (SaslRpcServer.AuthMethod c : SaslRpcServer.AuthMethod.values()) System.out.println(c);
public static SaslRpcServer.AuthMethod 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 java.lang.String getMechanismName()
public static SaslRpcServer.AuthMethod read(java.io.DataInput in) throws java.io.IOException
in - DataInput.java.io.IOException - raised on errors performing I/O.public void write(java.io.DataOutput out)
throws java.io.IOException
out - DataOutput.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.