public enum AuthenticationMechanism extends java.lang.Enum<AuthenticationMechanism>
Enum Constant and Description |
---|
GSSAPI
The GSSAPI mechanism.
|
MONGODB_CR
The MongoDB Challenge Response mechanism.
|
MONGODB_X509
The MongoDB X.509 mechanism.
|
PLAIN
The PLAIN mechanism.
|
SCRAM_SHA_1
The SCRAM-SHA-1 mechanism.
|
Modifier and Type | Method and Description |
---|---|
static AuthenticationMechanism |
fromMechanismName(java.lang.String mechanismName)
Gets the mechanism by its name.
|
java.lang.String |
getMechanismName()
Get the mechanism name.
|
java.lang.String |
toString() |
static AuthenticationMechanism |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationMechanism[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationMechanism GSSAPI
public static final AuthenticationMechanism PLAIN
public static final AuthenticationMechanism MONGODB_X509
public static final AuthenticationMechanism MONGODB_CR
public static final AuthenticationMechanism SCRAM_SHA_1
public static AuthenticationMechanism[] values()
for (AuthenticationMechanism c : AuthenticationMechanism.values()) System.out.println(c);
public static AuthenticationMechanism 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 java.lang.String toString()
toString
in class java.lang.Enum<AuthenticationMechanism>
public static AuthenticationMechanism fromMechanismName(java.lang.String mechanismName)
mechanismName
- the mechanism namegetMechanismName()