Java com.mongodb MongoCredential fields, constructors, methods, implement or subclass

Example usage for Java com.mongodb MongoCredential fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.mongodb MongoCredential.

The text is from its open source code.

Field

StringMONGODB_CR_MECHANISM
The MongoDB Challenge Response mechanism.
StringGSSAPI_MECHANISM
The GSSAPI mechanism.
StringPLAIN_MECHANISM
The PLAIN mechanism.
StringMONGODB_X509_MECHANISM
The MongoDB X.509
StringSCRAM_SHA_1_MECHANISM
The SCRAM-SHA-1 Mechanism.

Constructor

Method

MongoCredentialcreateCredential(final String userName, final String database, final char[] password)
Creates a MongoCredential instance with an unspecified mechanism.
MongoCredentialcreateGSSAPICredential(final String userName)
Creates a MongoCredential instance for the GSSAPI SASL mechanism.
MongoCredentialcreateMongoCRCredential(final String userName, final String database, final char[] password)
Creates a MongoCredential instance for the MongoDB Challenge Response protocol.
MongoCredentialcreateMongoX509Credential(final String userName)
Creates a MongoCredential instance for the MongoDB X.509 protocol.
MongoCredentialcreatePlainCredential(final String userName, final String source, final char[] password)
Creates a MongoCredential instance for the PLAIN SASL mechanism.
MongoCredentialcreateScramSha1Credential(final String userName, final String source, final char[] password)
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
StringgetMechanism()
Gets the mechanism
char[]getPassword()
Gets the password.
StringgetSource()
Gets the source of the user name, typically the name of the database where the user is defined.
StringgetUserName()
Gets the user name