Table of Contents

Constructor ScramSha1Authenticator

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

ScramSha1Authenticator(UsernamePasswordCredential)

Initializes a new instance of the ScramSha1Authenticator class.

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

Parameters

credential UsernamePasswordCredential

The credential.

ScramSha1Authenticator(UsernamePasswordCredential, ServerApi)

Initializes a new instance of the ScramSha1Authenticator class.

public ScramSha1Authenticator(UsernamePasswordCredential credential, ServerApi serverApi)

Parameters

credential UsernamePasswordCredential

The credential.

serverApi ServerApi

The server API.