UsernamePasswordCredential Class |
Namespace: MongoDB.Driver.Core.Authentication
The UsernamePasswordCredential type exposes the following members.
Name | Description | |
---|---|---|
UsernamePasswordCredential(String, String, SecureString) |
Initializes a new instance of the UsernamePasswordCredential class.
| |
UsernamePasswordCredential(String, String, String) |
Initializes a new instance of the UsernamePasswordCredential class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetInsecurePassword |
Gets the password (converts the password from a SecureString to a regular string).
| |
GetType | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
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.) |