Table of Contents

Namespace MongoDB.Driver.Core.Authentication

The MongoDB.Driver.Core.Authentication namespace contains classes related to authentication.

Classes

AuthenticatorFactory

Represents an authenticator factory.

DefaultAuthenticator

The default authenticator. If saslSupportedMechs is not present in the hello or legacy hello results for mechanism negotiation uses SCRAM-SHA-1. Else, uses SCRAM-SHA-256 if present in the list of mechanisms. Otherwise, uses SCRAM-SHA-1 the default, regardless of whether SCRAM-SHA-1 is in the list.

GssapiAuthenticator

A GSSAPI SASL authenticator.

GssapiException

Thrown from a GSSAPI-related method.

MongoAWSAuthenticator

The Mongo AWS authenticator.

MongoDBCRAuthenticator

A MONGODB-CR authenticator. This authenticator was replaced by ScramSha1Authenticator in MongoDB 3.0, and is now deprecated.

MongoDBX509Authenticator

A MongoDB-X509 authenticator.

PlainAuthenticator

A PLAIN SASL authenticator.

SaslAuthenticator

Base class for a SASL authenticator.

SaslAuthenticator.CompletedStep

Represents a completed SASL step.

SaslAuthenticator.SaslConversation

Represents a SASL conversation.

ScramSha1Authenticator

A SCRAM-SHA1 SASL authenticator.

ScramSha256Authenticator

A SCRAM-SHA256 SASL authenticator.

ScramShaAuthenticator

A SCRAM-SHA SASL authenticator.

UsernamePasswordCredential

Represents a username/password credential.

Interfaces

IAuthenticator

Represents a connection authenticator.

IAuthenticatorFactory

Represents an authenticator factory.

ISecurityContext

Represents the security context being used for authentication.

SaslAuthenticator.ISaslMechanism

Represents a SASL mechanism.

SaslAuthenticator.ISaslStep

Represents a SASL step.

Delegates

ScramShaAuthenticator.H

An H function as defined in RFC5802.

ScramShaAuthenticator.Hi

A Hi function used to compute the SaltedPassword as defined in RFC5802, except with "str" parameter replaced with a UsernamePassword credential so that the password can be optionally digested/prepped in a secure fashion before being consumed as the "str" parameter would be in RFC5802's Hi.

ScramShaAuthenticator.Hmac

An HMAC function as defined in RFC5802, plus the encoding of the data.