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.
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)
Optionally customizes hello or legacy hello command.