public enum AuthenticationMechanismType extends Enum<AuthenticationMechanismType>
MongoCredential| Enum Constant and Description |
|---|
BEST
The client will negotiate the best mechanism based on
the version of the server that the client is authenticating to.
|
GSSAPI |
MONGODB_CR
Deprecated.
since MongoDB 3.0, use
SCRAM_SHA_1 or BEST |
MONGODB_X509 |
PLAIN |
SCRAM_SHA_1 |
| Modifier and Type | Method and Description |
|---|---|
abstract com.mongodb.MongoCredential |
createCredential(String username,
String databaseName,
String password) |
static AuthenticationMechanismType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationMechanismType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationMechanismType GSSAPI
@Deprecated public static final AuthenticationMechanismType MONGODB_CR
SCRAM_SHA_1 or BESTpublic static final AuthenticationMechanismType PLAIN
public static final AuthenticationMechanismType MONGODB_X509
public static final AuthenticationMechanismType SCRAM_SHA_1
public static final AuthenticationMechanismType BEST
public static AuthenticationMechanismType[] values()
for (AuthenticationMechanismType c : AuthenticationMechanismType.values()) System.out.println(c);
public static AuthenticationMechanismType 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 nullCopyright © 2010–2016 Hibernate. All rights reserved.