- createCredential
Creates a MongoCredential instance with an unspecified mechanism. The client
will negotiate the best
- createMongoCRCredential
Creates a MongoCredential instance for the MongoDB Challenge Response protocol.
Use this method only
- createScramSha1Credential
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism. Use this
method only if you w
- createPlainCredential
Creates a MongoCredential instance for the PLAIN SASL mechanism.
- createGSSAPICredential
Creates a MongoCredential instance for the GSSAPI SASL mechanism. To override
the default service na
- createMongoX509Credential
Creates a MongoCredential instance for the MongoDB X.509 protocol.
- getUserName
Gets the user name
- getPassword
Gets the password.
- getSource
Gets the source of the user name, typically the name of the database where the
user is defined.
- getMechanism
Gets the mechanism
- createScramSha256Credential
Creates a MongoCredential instance for the SCRAM-SHA-256 SASL mechanism.
- hashCode