Table of Contents

Class GssapiAuthenticator

Namespace
MongoDB.Driver.Core.Authentication
Assembly
MongoDB.Driver.Core.dll

A GSSAPI SASL authenticator.

public sealed class GssapiAuthenticator : SaslAuthenticator, IAuthenticator
Inheritance
GssapiAuthenticator
Implements
Inherited Members

Constructors

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 UsernamePasswordCredential

The 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 UsernamePasswordCredential

The credential.

properties IEnumerable<KeyValuePair<string, string>>

The properties.

serverApi ServerApi

The 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 string

The 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 string

The username.

properties IEnumerable<KeyValuePair<string, string>>

The properties.

serverApi ServerApi

The server API.

Properties

CanonicalizeHostNamePropertyName

Gets the name of the canonicalize host name property.

public static string CanonicalizeHostNamePropertyName { get; }

Property Value

string

The name of the canonicalize host name property.

DatabaseName

Gets the name of the database.

public override string DatabaseName { get; }

Property Value

string

The name of the database.

DefaultServiceName

Gets the default service name.

public static string DefaultServiceName { get; }

Property Value

string

The default service name.

MechanismName

Gets the name of the mechanism.

public static string MechanismName { get; }

Property Value

string

The name of the mechanism.

RealmPropertyName

Gets the name of the realm property.

[Obsolete("Use ServiceRealmPropertyName")]
public static string RealmPropertyName { get; }

Property Value

string

The name of the realm property.

ServiceNamePropertyName

Gets the name of the service name property.

public static string ServiceNamePropertyName { get; }

Property Value

string

The name of the service name property.

ServiceRealmPropertyName

Gets the name of the service realm property.

public static string ServiceRealmPropertyName { get; }

Property Value

string

The name of the service realm property.