Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
Modifier and Type | Field and Description |
---|---|
private AuthenticationMechanism |
MongoCredential.mechanism |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,AuthenticationMechanism> |
AuthenticationMechanism.AUTH_MAP |
Modifier and Type | Method and Description |
---|---|
static AuthenticationMechanism |
AuthenticationMechanism.fromMechanismName(java.lang.String mechanismName)
Gets the mechanism by its name.
|
AuthenticationMechanism |
MongoCredential.getAuthenticationMechanism()
Gets the mechanism
|
static AuthenticationMechanism |
AuthenticationMechanism.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationMechanism[] |
AuthenticationMechanism.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
MongoCredential(AuthenticationMechanism mechanism,
java.lang.String userName,
java.lang.String source,
char[] password)
Constructs a new instance using the given mechanism, userName, source, and password
|