Constructor MongoAWSAuthenticator
- Namespace
- MongoDB.Driver.Core.Authentication
- Assembly
- MongoDB.Driver.Core.dll
MongoAWSAuthenticator(UsernamePasswordCredential, IEnumerable<KeyValuePair<string, string>>, ServerApi)
Initializes a new instance of the MongoAWSAuthenticator class.
public MongoAWSAuthenticator(UsernamePasswordCredential credential, IEnumerable<KeyValuePair<string, string>> properties, ServerApi serverApi)
Parameters
credential
UsernamePasswordCredentialThe credentials.
properties
IEnumerable<KeyValuePair<string, string>>The properties.
serverApi
ServerApiThe server API.
MongoAWSAuthenticator(string, IEnumerable<KeyValuePair<string, string>>, ServerApi)
Initializes a new instance of the MongoAWSAuthenticator class.
public MongoAWSAuthenticator(string username, IEnumerable<KeyValuePair<string, string>> properties, ServerApi serverApi)
Parameters
username
stringThe username.
properties
IEnumerable<KeyValuePair<string, string>>The properties.
serverApi
ServerApiThe server API.