Table of Contents

Constructor ScramShaAuthenticator

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

ScramShaAuthenticator(UsernamePasswordCredential, HashAlgorithmName, H, Hi, Hmac)

Initializes a new instance of the ScramShaAuthenticator class.

[Obsolete("Use the newest overload instead.")]
protected ScramShaAuthenticator(UsernamePasswordCredential credential, HashAlgorithmName hashAlgorithmName, ScramShaAuthenticator.H h, ScramShaAuthenticator.Hi hi, ScramShaAuthenticator.Hmac hmac)

Parameters

credential UsernamePasswordCredential

The credential.

hashAlgorithmName HashAlgorithmName

The hash algorithm name.

h ScramShaAuthenticator.H

The H function to use.

hi ScramShaAuthenticator.Hi

The Hi function to use.

hmac ScramShaAuthenticator.Hmac

The Hmac function to use.

ScramShaAuthenticator(UsernamePasswordCredential, HashAlgorithmName, H, Hi, Hmac, ServerApi)

Initializes a new instance of the ScramShaAuthenticator class.

protected ScramShaAuthenticator(UsernamePasswordCredential credential, HashAlgorithmName hashAlgorithmName, ScramShaAuthenticator.H h, ScramShaAuthenticator.Hi hi, ScramShaAuthenticator.Hmac hmac, ServerApi serverApi)

Parameters

credential UsernamePasswordCredential

The credential.

hashAlgorithmName HashAlgorithmName

The hash algorithm name.

h ScramShaAuthenticator.H

The H function to use.

hi ScramShaAuthenticator.Hi

The Hi function to use.

hmac ScramShaAuthenticator.Hmac

The Hmac function to use.

serverApi ServerApi

The server API.