Package org.apache.hadoop.security
Enum Class SaslRpcServer.AuthMethod
- All Implemented Interfaces:
Serializable,Comparable<SaslRpcServer.AuthMethod>,Constable
- Enclosing class:
- org.apache.hadoop.security.SaslRpcServer
Authentication method
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn the SASL mechanism name.static SaslRpcServer.AuthMethodRead from in.static SaslRpcServer.AuthMethodReturns the enum constant of this class with the specified name.static SaslRpcServer.AuthMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwrite(DataOutput out) Write to out.
-
Enum Constant Details
-
SIMPLE
-
KERBEROS
-
DIGEST
Deprecated. -
TOKEN
-
PLAIN
-
-
Field Details
-
code
public final byte codeThe code for this method.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getMechanismName
Return the SASL mechanism name.- Returns:
- mechanismName.
-
read
Read from in.- Parameters:
in- DataInput.- Returns:
- AuthMethod.
- Throws:
IOException- raised on errors performing I/O.
-
write
Write to out.- Parameters:
out- DataOutput.- Throws:
IOException- raised on errors performing I/O.
-