Click or drag to resize

ScramSha1Authenticator Constructor (UsernamePasswordCredential, ServerApi)

Initializes a new instance of the ScramSha1Authenticator class.

Namespace:  MongoDB.Driver.Core.Authentication
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public ScramSha1Authenticator(
	UsernamePasswordCredential credential,
	ServerApi serverApi
)

Parameters

credential
Type: MongoDB.Driver.Core.AuthenticationUsernamePasswordCredential
The credential.
serverApi
Type: MongoDB.DriverServerApi
The server API.
See Also