Table of Contents

Interface ISaslMechanism

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

Represents a SASL mechanism.

public interface ISaslMechanism

Properties

DatabaseName

Gets the name of the database.

Name

Gets the name of the mechanism.

Methods

CreateSpeculativeAuthenticationStep()

Creates speculative authentication step if supported.

CustomizeSaslStartCommand(BsonDocument)

Optionally customizes SASL start command.

Initialize(SaslConversation, ConnectionDescription)

Initializes the SASL conversation for the connection.

OnReAuthenticationRequired()

Method called when server returns 391 error (ReauthenticationRequired), so auth mechanism can clear cache or perform another activity to reset mechanism internal state.

TryHandleAuthenticationException(MongoException, ISaslStep, SaslConversation, ConnectionDescription, out ISaslStep)

Tries to handle the authentication exception.