Constructor GssapiAuthenticator
- Namespace
- MongoDB.Driver.Core.Authentication
- Assembly
- MongoDB.Driver.Core.dll
GssapiAuthenticator(UsernamePasswordCredential, IEnumerable<KeyValuePair<string, string>>)
Initializes a new instance of the GssapiAuthenticator class.
[Obsolete("Use the newest overload instead.")]
public GssapiAuthenticator(UsernamePasswordCredential credential, IEnumerable<KeyValuePair<string, string>> properties)
Parameters
credential
UsernamePasswordCredentialThe credential.
properties
IEnumerable<KeyValuePair<string, string>>The properties.
GssapiAuthenticator(UsernamePasswordCredential, IEnumerable<KeyValuePair<string, string>>, ServerApi)
Initializes a new instance of the GssapiAuthenticator class.
public GssapiAuthenticator(UsernamePasswordCredential credential, IEnumerable<KeyValuePair<string, string>> properties, ServerApi serverApi)
Parameters
credential
UsernamePasswordCredentialThe credential.
properties
IEnumerable<KeyValuePair<string, string>>The properties.
serverApi
ServerApiThe server API.
GssapiAuthenticator(string, IEnumerable<KeyValuePair<string, string>>)
Initializes a new instance of the GssapiAuthenticator class.
[Obsolete("Use the newest overload instead.")]
public GssapiAuthenticator(string username, IEnumerable<KeyValuePair<string, string>> properties)
Parameters
username
stringThe username.
properties
IEnumerable<KeyValuePair<string, string>>The properties.
GssapiAuthenticator(string, IEnumerable<KeyValuePair<string, string>>, ServerApi)
Initializes a new instance of the GssapiAuthenticator class.
public GssapiAuthenticator(string username, IEnumerable<KeyValuePair<string, string>> properties, ServerApi serverApi)
Parameters
username
stringThe username.
properties
IEnumerable<KeyValuePair<string, string>>The properties.
serverApi
ServerApiThe server API.