@InterfaceStability.Evolving public static enum SaslRpcServer.AuthMethod extends Enum<SaslRpcServer.AuthMethod>
Modifier and Type | Field and Description |
---|---|
byte |
code
The code for this method.
|
String |
mechanismName |
Modifier and Type | Method and Description |
---|---|
String |
getMechanismName()
Return the SASL mechanism name
|
static SaslRpcServer.AuthMethod |
read(DataInput in)
Read from in
|
static SaslRpcServer.AuthMethod |
valueOf(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(DataOutput out)
Write to out
|
public static final SaslRpcServer.AuthMethod SIMPLE
public static final SaslRpcServer.AuthMethod KERBEROS
public static final SaslRpcServer.AuthMethod DIGEST
public static final SaslRpcServer.AuthMethod PLAIN
public final byte code
public final String mechanismName
public static SaslRpcServer.AuthMethod[] values()
for (SaslRpcServer.AuthMethod c : SaslRpcServer.AuthMethod.values()) System.out.println(c);
public static SaslRpcServer.AuthMethod 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 String getMechanismName()
public static SaslRpcServer.AuthMethod read(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.