Table of Contents

Class PlainAuthenticator

Namespace
MongoDB.Driver.Core.Authentication
Assembly
MongoDB.Driver.Core.dll

A PLAIN SASL authenticator.

public sealed class PlainAuthenticator : SaslAuthenticator, IAuthenticator
Inheritance
PlainAuthenticator
Implements
Inherited Members

Constructors

PlainAuthenticator(UsernamePasswordCredential)

Initializes a new instance of the PlainAuthenticator class.

[Obsolete("Use the newest overload instead.")]
public PlainAuthenticator(UsernamePasswordCredential credential)

Parameters

credential UsernamePasswordCredential

The credential.

PlainAuthenticator(UsernamePasswordCredential, ServerApi)

Initializes a new instance of the PlainAuthenticator class.

public PlainAuthenticator(UsernamePasswordCredential credential, ServerApi serverApi)

Parameters

credential UsernamePasswordCredential

The credential.

serverApi ServerApi

The server API.

Properties

DatabaseName

Gets the name of the database.

public override string DatabaseName { get; }

Property Value

string

The name of the database.

MechanismName

Gets the name of the mechanism.

public static string MechanismName { get; }

Property Value

string

The name of the mechanism.