Table of Contents

Class ScramSha256Authenticator

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

A SCRAM-SHA256 SASL authenticator.

public sealed class ScramSha256Authenticator : ScramShaAuthenticator, IAuthenticator
Inheritance
ScramSha256Authenticator
Implements
Inherited Members

Constructors

ScramSha256Authenticator(UsernamePasswordCredential)

Initializes a new instance of the ScramSha256Authenticator class.

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

Parameters

credential UsernamePasswordCredential

The credential.

ScramSha256Authenticator(UsernamePasswordCredential, ServerApi)

Initializes a new instance of the ScramSha256Authenticator class.

public ScramSha256Authenticator(UsernamePasswordCredential credential, ServerApi serverApi)

Parameters

credential UsernamePasswordCredential

The credential.

serverApi ServerApi

The server API.

Properties

MechanismName

Gets the name of the mechanism.

public static string MechanismName { get; }

Property Value

string

The name of the mechanism.