Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MongoCredentials

A representation of the credentials used by MongoDB

Hierarchy层级

  • MongoCredentials

Index索引

Constructors构造函数

Properties属性

Methods方法

Constructors构造函数

constructor

Properties属性

Readonly mechanism

mechanism: AuthMechanism

The method used to authenticate

Readonly mechanismProperties

mechanismProperties: Document

Special properties used by some types of auth mechanisms

Readonly password

password: string

The password used for authentication

Readonly source

source: string

The database that the user should authenticate against

Readonly username

username: string

The username used for authentication

Methods方法

equals

resolveAuthMechanism

  • If the authentication mechanism is set to "default", resolves the authMechanism based on the server version and server supported sasl mechanisms.

    Parameters参数

    • Optional ismaster: Document

      An ismaster response from the server

    Returns返回MongoCredentials

validate

  • validate(): void

Static merge

Generated using TypeDoc