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 | | | ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public property | Password | Gets the password. | | Public property | 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. | | Public property | Source | Gets the source. | | Public property | Username | Gets the username. |

Top

Methods

| | Name | Description | | | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public method | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | | Public method | GetHashCode | Serves as the default hash function. (Inherited from Object.) | | Public method | GetInsecurePassword | Gets the password (converts the password from a SecureString to a regular string). | | Public method | GetType | Gets the Type of the current instance. (Inherited from Object.) | | Public method | ToString | Returns a string that represents the current object. (Inherited from Object.) |

Top

Extension Methods

See Also

Reference