MongoCredential Class |
Namespace: MongoDB.Driver
The MongoCredential type exposes the following members.
Name | Description | |
---|---|---|
MongoCredential |
Initializes a new instance of the MongoCredential class.
|
Name | Description | |
---|---|---|
Evidence |
Gets the evidence.
| |
Identity |
Gets the identity.
| |
Mechanism |
Gets the mechanism to authenticate with.
| |
Password | Obsolete.
Gets the password.
| |
Source |
Gets the source.
| |
Username |
Gets the username.
|
Name | Description | |
---|---|---|
CreateCredential(String, String, SecureString) |
Creates a default credential.
| |
CreateCredential(String, String, String) |
Creates a default credential.
| |
CreateGssapiCredential(String) |
Creates a GSSAPI credential.
| |
CreateGssapiCredential(String, SecureString) |
Creates a GSSAPI credential.
| |
CreateGssapiCredential(String, String) |
Creates a GSSAPI credential.
| |
CreateMongoCRCredential(String, String, SecureString) |
Creates a credential used with MONGODB-CR.
| |
CreateMongoCRCredential(String, String, String) |
Creates a credential used with MONGODB-CR.
| |
CreateMongoX509Credential |
Creates a credential used with MONGODB-CR.
| |
CreatePlainCredential(String, String, SecureString) |
Creates a PLAIN credential.
| |
CreatePlainCredential(String, String, String) |
Creates a PLAIN credential.
| |
Equals(Object) |
Compares this MongoCredential to another MongoCredential.
(Overrides ObjectEquals(Object).) | |
Equals(MongoCredential) |
Compares this MongoCredential to another MongoCredential.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Gets the hashcode for the credential.
(Overrides ObjectGetHashCode.) | |
GetMechanismPropertyT |
Gets the mechanism property.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Returns a string representation of the credential.
(Overrides ObjectToString.) | |
WithMechanismProperty |
Creates a new MongoCredential with the specified mechanism property.
|
Name | Description | |
---|---|---|
Equality |
Compares two MongoCredentials.
| |
Inequality |
Compares two MongoCredentials.
|
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |