Table of Contents

Method CreateGssapiCredential

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

CreateGssapiCredential(string)

Creates a GSSAPI credential.

public static MongoCredential CreateGssapiCredential(string username)

Parameters

username string

The 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

username string

The username.

password string

The password.

Returns

MongoCredential

A credential for GSSAPI.

CreateGssapiCredential(string, SecureString)

Creates a GSSAPI credential.

public static MongoCredential CreateGssapiCredential(string username, SecureString password)

Parameters

username string

The username.

password SecureString

The password.

Returns

MongoCredential

A credential for GSSAPI.