| Package | Description |
|---|---|
| com.mongodb |
Main package with core files.
|
| Modifier and Type | Field and Description |
|---|---|
private MongoCredentialsStore |
MongoAuthority.credentialsStore |
| Modifier and Type | Method and Description |
|---|---|
MongoCredentialsStore |
MongoAuthority.getCredentialsStore()
Gets the credentials store.
|
| Modifier and Type | Method and Description |
|---|---|
static MongoAuthority |
MongoAuthority.direct(ServerAddress serverAddress,
MongoCredentialsStore credentialsStore) |
static MongoAuthority |
MongoAuthority.dynamicSet(java.util.List<ServerAddress> serverAddresses,
MongoCredentialsStore credentialsStore) |
| Constructor and Description |
|---|
MongoAuthority(java.util.List<ServerAddress> serverAddresses,
MongoAuthority.Type type,
MongoCredentialsStore credentialsStore)
Constructs an instance with a list of server addresses, which may either be a list of mongos servers
or a list of members of a replica set, and a store of authentication credentials.
|
MongoAuthority(ServerAddress serverAddress,
MongoCredentialsStore credentialsStore)
Constructs an instance with a single server address and a store of authentication credentials.
|