Table of Contents

Class SaslAuthenticator

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

Base class for a SASL authenticator.

public abstract class SaslAuthenticator : IAuthenticator
Inheritance
SaslAuthenticator
Implements
Derived
Inherited Members

Constructors

SaslAuthenticator(ISaslMechanism)

Initializes a new instance of the SaslAuthenticator class.

SaslAuthenticator(ISaslMechanism, ServerApi)

Initializes a new instance of the SaslAuthenticator class.

Fields

SaslContinueCommand

The SASL continue command.

SaslStartCommand

The SASL start command.

Properties

DatabaseName

Gets the name of the database.

Name

Gets the name of the authenticator.

Methods

Authenticate(IConnection, ConnectionDescription, CancellationToken)

Authenticates the connection.

AuthenticateAsync(IConnection, ConnectionDescription, CancellationToken)

Authenticates the connection.

CustomizeInitialHelloCommand(BsonDocument, CancellationToken)

Optionally customizes hello or legacy hello command.