Table of Contents

Constructor DefaultAuthenticator

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

DefaultAuthenticator(UsernamePasswordCredential)

Initializes a new instance of the DefaultAuthenticator class.

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

Parameters

credential UsernamePasswordCredential

The credential.

DefaultAuthenticator(UsernamePasswordCredential, ServerApi)

Initializes a new instance of the DefaultAuthenticator class.

public DefaultAuthenticator(UsernamePasswordCredential credential, ServerApi serverApi)

Parameters

credential UsernamePasswordCredential

The credential.

serverApi ServerApi

The server API.