UsernamePasswordCredential Class (original) (raw)
Represents a username/password credential.
Inheritance Hierarchy
SystemObject
MongoDB.Driver.Core.AuthenticationUsernamePasswordCredential
Namespace: MongoDB.Driver.Core.Authentication
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public sealed class UsernamePasswordCredential
Public NotInheritable Class UsernamePasswordCredential
[] type UsernamePasswordCredential = class end
The UsernamePasswordCredential type exposes the following members.
Constructors
Properties
| | Name | Description | |
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | Password | Gets the password. |
|
| SaslPreppedPassword | Gets the the SASLprepped password. May create a cleartext copy of the password in managed memory the first time it is accessed. Use only as needed e.g. for SCRAM-SHA-256. |
|
| Source | Gets the source. |
|
| Username | Gets the username. |
Methods
| | Name | Description | |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
| GetHashCode | Serves as the default hash function. (Inherited from Object.) |
|
| GetInsecurePassword | Gets the password (converts the password from a SecureString to a regular string). |
|
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
See Also