AuthenticationMechanism

public enum AuthenticationMechanism: String

An enumeration of the MongodDB-supported authentication mechanisms.

  • SCRAM_SHA_1: The SCRAM-SHA-1 mechanism.
  • MONGODB_CR: The MongoDB Challenge Response mechanism.
  • MONGODB_X509: The MongoDB X.509 mechanism.
  • PLAIN: The PLAIN mechanism.
  • GSSAPI: The GSSAPI mechanism.
  • SCRAM-SHA-1 mechanism

    Declaration

    Swift

    case SCRAM_SHA_1
  • MongoDB Challenge-Response mechanism

    Declaration

    Swift

    case MONGODB_CR
  • X.509 certificate base authentication (currently unsupported)

    Declaration

    Swift

    case MONGODB_X509
  • PLAIN authentication (currently unsupported)

    Declaration

    Swift

    case PLAIN
  • GSSAPI authentication (currently unsupported)

    Declaration

    Swift

    case GSSAPI