Method CreateGssapiCredential
CreateGssapiCredential(string)
Creates a GSSAPI credential.
public static MongoCredential CreateGssapiCredential(string username)
Parameters
username
stringThe username.
Returns
- MongoCredential
A credential for GSSAPI.
Remarks
This overload is used primarily on linux.
CreateGssapiCredential(string, string)
Creates a GSSAPI credential.
public static MongoCredential CreateGssapiCredential(string username, string password)
Parameters
Returns
- MongoCredential
A credential for GSSAPI.
CreateGssapiCredential(string, SecureString)
Creates a GSSAPI credential.
public static MongoCredential CreateGssapiCredential(string username, SecureString password)
Parameters
username
stringThe username.
password
SecureStringThe password.
Returns
- MongoCredential
A credential for GSSAPI.