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
UsernamePasswordCredentialThe credential.
DefaultAuthenticator(UsernamePasswordCredential, ServerApi)
Initializes a new instance of the DefaultAuthenticator class.
public DefaultAuthenticator(UsernamePasswordCredential credential, ServerApi serverApi)
Parameters
credential
UsernamePasswordCredentialThe credential.
serverApi
ServerApiThe server API.