Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Method and Description |
---|---|
static MongoCredential |
MongoCredential.createCredential(String userName,
String database,
char[] password)
Creates a MongoCredential instance with an unspecified mechanism.
|
static MongoCredential |
MongoCredential.createGSSAPICredential(String userName)
Creates a MongoCredential instance for the GSSAPI SASL mechanism.
|
static MongoCredential |
MongoCredential.createMongoCRCredential(String userName,
String database,
char[] password)
Creates a MongoCredential instance for the MongoDB Challenge Response protocol.
|
static MongoCredential |
MongoCredential.createMongoX509Credential(String userName)
Creates a MongoCredential instance for the MongoDB X.509 protocol.
|
static MongoCredential |
MongoCredential.createPlainCredential(String userName,
String source,
char[] password)
Creates a MongoCredential instance for the PLAIN SASL mechanism.
|
static MongoCredential |
MongoCredential.createScramSha1Credential(String userName,
String source,
char[] password)
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
|
MongoCredential |
MongoURI.getCredentials()
Gets the credentials.
|
MongoCredential |
MongoClientURI.getCredentials()
Gets the credentials.
|
<T> MongoCredential |
MongoCredential.withMechanismProperty(String key,
T value)
Creates a new MongoCredential as a copy of this instance, with the specified mechanism property added.
|
Modifier and Type | Method and Description |
---|---|
List<MongoCredential> |
MongoClient.getCredentialsList()
Gets the list of credentials that this client authenticates all connections with
|
Modifier and Type | Method and Description |
---|---|
CommandResult |
DBTCPConnector.authenticate(MongoCredential credentials)
Deprecated.
|
CommandResult |
DBConnector.authenticate(MongoCredential credentials)
Deprecated.
Authenticate using the given credentials.
|
Constructor and Description |
---|
MongoClient(List<ServerAddress> seeds,
List<MongoCredential> credentialsList)
Creates a Mongo based on a list of replica set members or a list of mongos.
|
MongoClient(List<ServerAddress> seeds,
List<MongoCredential> credentialsList,
MongoClientOptions options)
Creates a Mongo based on a list of replica set members or a list of mongos.
|
MongoClient(ServerAddress addr,
List<MongoCredential> credentialsList)
Creates a Mongo instance based on a (single) mongodb node and a list of credentials
|
MongoClient(ServerAddress addr,
List<MongoCredential> credentialsList,
MongoClientOptions options)
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and default options.
|