| Package | Description |
|---|---|
| com.mongodb |
Main package with core files.
|
| Modifier and Type | Field and Description |
|---|---|
private MongoCredential |
DBPort.ScramSha1Authenticator.ScramSha1SaslClient.credential |
protected MongoCredential |
DBPort.Authenticator.credential |
private MongoCredential |
MongoClientURI.credentials |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,MongoCredential> |
MongoCredentialsStore.credentialsMap |
| Modifier and Type | Method and Description |
|---|---|
static MongoCredential |
MongoCredential.createCredential(java.lang.String userName,
java.lang.String database,
char[] password)
Creates a MongoCredential instance with an unspecified mechanism.
|
private MongoCredential |
MongoClientURI.createCredentials(java.util.Map<java.lang.String,java.util.List<java.lang.String>> optionsMap,
java.lang.String userName,
char[] password,
java.lang.String database) |
static MongoCredential |
MongoCredential.createGSSAPICredential(java.lang.String userName)
Creates a MongoCredential instance for the GSSAPI SASL mechanism.
|
static MongoCredential |
MongoCredential.createMongoCRCredential(java.lang.String userName,
java.lang.String database,
char[] password)
Creates a MongoCredential instance for the MongoDB Challenge Response protocol.
|
static MongoCredential |
MongoCredential.createMongoX509Credential(java.lang.String userName)
Creates a MongoCredential instance for the MongoDB X.509 protocol.
|
static MongoCredential |
MongoCredential.createPlainCredential(java.lang.String userName,
java.lang.String source,
char[] password)
Creates a MongoCredential instance for the PLAIN SASL mechanism.
|
static MongoCredential |
MongoCredential.createScramSha1Credential(java.lang.String userName,
java.lang.String source,
char[] password)
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
|
MongoCredential |
MongoCredentialsStore.get(java.lang.String database)
Gets the stored credentials for the given database.
|
(package private) MongoCredential |
DB.getAuthenticationCredentials() |
MongoCredential |
MongoClientURI.getCredentials()
Gets the credentials.
|
MongoCredential |
MongoURI.getCredentials()
Gets the credentials.
|
<T> MongoCredential |
MongoCredential.withMechanismProperty(java.lang.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 |
|---|---|
java.util.List<MongoCredential> |
MongoCredentialsStore.asList()
Gets the MongoCredentials in this map as a List
|
java.util.List<MongoCredential> |
MongoClient.getCredentialsList()
Gets the list of credentials that this client authenticates all connections with
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
MongoCredentialsStore.add(MongoCredential credentials)
Adds a new credentials.
|
CommandResult |
DBConnector.authenticate(MongoCredential credentials)
Deprecated.
Authenticate using the given credentials.
|
CommandResult |
DBTCPConnector.authenticate(MongoCredential credentials)
Deprecated.
|
(package private) CommandResult |
DBPort.authenticate(Mongo mongo,
MongoCredential credentials)
Deprecated.
|
static MongoAuthority |
MongoAuthority.direct(ServerAddress serverAddress,
MongoCredential credentials) |
(package private) CommandResult |
DBApiLayer.doAuthenticate(MongoCredential credentials)
Deprecated.
|
(package private) abstract CommandResult |
DB.doAuthenticate(MongoCredential credentials) |
static MongoAuthority |
MongoAuthority.dynamicSet(java.util.List<ServerAddress> serverAddresses,
MongoCredential credentials) |
| Constructor and Description |
|---|
Authenticator(Mongo mongo,
MongoCredential credential) |
GSSAPIAuthenticator(Mongo mongo,
MongoCredential credentials) |
MongoCredential(MongoCredential from,
java.lang.String mechanismPropertyKey,
T mechanismPropertyValue)
Constructs a new instance using the given credential plus an additional mechanism property.
|
MongoCredentialsStore(MongoCredential credentials)
Creates a store with a single credentials.
|
NativeAuthenticator(Mongo mongo,
MongoCredential credentials) |
PlainAuthenticator(Mongo mongo,
MongoCredential credentials) |
SaslAuthenticator(Mongo mongo,
MongoCredential credentials) |
ScramSha1Authenticator(Mongo mongo,
MongoCredential credential) |
ScramSha1SaslClient(MongoCredential credential) |
X509Authenticator(Mongo mongo,
MongoCredential credential) |
| Constructor and Description |
|---|
MongoClient(java.util.List<ServerAddress> seeds,
java.util.List<MongoCredential> credentialsList)
Creates a Mongo based on a list of replica set members or a list of mongos.
|
MongoClient(java.util.List<ServerAddress> seeds,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options)
Creates a Mongo based on a list of replica set members or a list of mongos.
|
MongoClient(ServerAddress addr,
java.util.List<MongoCredential> credentialsList)
Creates a Mongo instance based on a (single) mongodb node and a list of credentials
|
MongoClient(ServerAddress addr,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options)
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and default options.
|
MongoCredentialsStore(java.lang.Iterable<MongoCredential> credentialsList)
Creates a store with the list of credentials.
|