Package org.apache.accumulo.core.rpc
Enum SaslConnectionParams.SaslMechanism
- java.lang.Object
-
- java.lang.Enum<SaslConnectionParams.SaslMechanism>
-
- org.apache.accumulo.core.rpc.SaslConnectionParams.SaslMechanism
-
- All Implemented Interfaces:
Serializable
,Comparable<SaslConnectionParams.SaslMechanism>
- Enclosing class:
- SaslConnectionParams
public static enum SaslConnectionParams.SaslMechanism extends Enum<SaslConnectionParams.SaslMechanism>
The SASL mechanism to use for authentication
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIGEST_MD5
GSSAPI
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SaslConnectionParams.SaslMechanism
get(String mechanismName)
String
getMechanismName()
static SaslConnectionParams.SaslMechanism
valueOf(String name)
Returns the enum constant of this type with the specified name.static SaslConnectionParams.SaslMechanism[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GSSAPI
public static final SaslConnectionParams.SaslMechanism GSSAPI
-
DIGEST_MD5
public static final SaslConnectionParams.SaslMechanism DIGEST_MD5
-
-
Method Detail
-
values
public static SaslConnectionParams.SaslMechanism[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SaslConnectionParams.SaslMechanism c : SaslConnectionParams.SaslMechanism.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SaslConnectionParams.SaslMechanism valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMechanismName
public String getMechanismName()
-
get
public static SaslConnectionParams.SaslMechanism get(String mechanismName)
-
-