Creates a MongoCredential instance with an unspecified mechanism.
Creates a MongoCredential instance with an unspecified mechanism. The client will negotiate the best mechanism based on the version of the server that the client is authenticating to. If the server version is 2.8 or higher, the driver will authenticate using the SCRAM-SHA-1 mechanism. Otherwise, the driver will authenticate using the MONGODB_CR mechanism.
the user name
the database where the user is defined
the user's password
Creates a MongoCredential instance for the GSSAPI SASL mechanism
Creates a MongoCredential instance for the GSSAPI SASL mechanism
the user name
Creates a MongoCredential instance for the MongoDB Challenge Response protocol
Creates a MongoCredential instance for the MongoDB Challenge Response protocol
the user name
the source of the user name, typically a database name
the password
Creates a MongoCredential instance for the MongoDB X.509 protocol.
Creates a MongoCredential instance for the MongoDB X.509 protocol.
the non-null user name
the credential
Creates a MongoCredential instance for the PLAIN SASL mechanism.
Creates a MongoCredential instance for the PLAIN SASL mechanism.
the non-null user name
the source where the user is defined. This can be either "$external"
or the name of a database.
the credential
Creates a MongoCredential instance for the MongoDB Challenge Response protocol
Creates a MongoCredential instance for the MongoDB Challenge Response protocol
the user name
the source of the user name, typically a database name
the password
(Since version 2.7) Please use MongoCredential.createCredential
Creates a MongoCredential instance for the GSSAPI SASL mechanism
Creates a MongoCredential instance for the GSSAPI SASL mechanism
the user name
(Since version 2.7) Please use MongoCredential.createGSSAPICredential
Helper class for creating MongoCredential instances
2.6
com.mongodb.MongoCredential