Constructor ScramSha256Authenticator
- Namespace
- MongoDB.Driver.Core.Authentication
- Assembly
- MongoDB.Driver.Core.dll
ScramSha256Authenticator(UsernamePasswordCredential)
Initializes a new instance of the ScramSha256Authenticator class.
[Obsolete("Use the newest overload instead.")]
public ScramSha256Authenticator(UsernamePasswordCredential credential)
Parameters
credential
UsernamePasswordCredentialThe credential.
ScramSha256Authenticator(UsernamePasswordCredential, ServerApi)
Initializes a new instance of the ScramSha256Authenticator class.
public ScramSha256Authenticator(UsernamePasswordCredential credential, ServerApi serverApi)
Parameters
credential
UsernamePasswordCredentialThe credential.
serverApi
ServerApiThe server API.