io.vertx.ext.auth.mongo

## Class MongoAuthOptions

- java.lang.Object
- - io.vertx.ext.auth.mongo.MongoAuthOptions

- All Implemented Interfaces:
    AuthOptions

      public class MongoAuthOptions
      extends Object
      implements AuthOptions

  Options configuring Mongo authentication.
  Author:
    Julien Viet

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MongoAuthOptions()`
    `MongoAuthOptions(JsonObject json)`
    `MongoAuthOptions(MongoAuthOptions that)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `MongoAuthOptions` | `clone()`
    `MongoAuth` | `createProvider(Vertx vertx)` Create the suitable provider for this option.
    `String` | `getCollectionName()`
    `JsonObject` | `getConfig()`
    `String` | `getDatasourceName()`
    `String` | `getPasswordField()`
    `String` | `getPermissionField()`
    `String` | `getRoleField()`
    `String` | `getSaltField()`
    `HashSaltStyle` | `getSaltStyle()`
    `boolean` | `getShared()`
    `String` | `getUsernameCredentialField()`
    `String` | `getUsernameField()`
    `MongoAuthOptions` | `setCollectionName(String collectionName)` The property name to be used to set the name of the collection inside the config.
    `MongoAuthOptions` | `setConfig(JsonObject config)` The mongo client configuration: see Mongo Client documentation.
    `MongoAuthOptions` | `setDatasourceName(String datasourceName)` The mongo data source name: see Mongo Client documentation.
    `MongoAuthOptions` | `setPasswordField(String passwordField)` The property name to be used to set the name of the field, where the password is stored inside
    `MongoAuthOptions` | `setPermissionField(String permissionField)` The property name to be used to set the name of the field, where the permissions are stored inside.
    `MongoAuthOptions` | `setRoleField(String roleField)` The property name to be used to set the name of the field, where the roles are stored inside.
    `MongoAuthOptions` | `setSaltField(String saltField)` The property name to be used to set the name of the field, where the SALT is stored inside.
    `MongoAuthOptions` | `setSaltStyle(HashSaltStyle saltStyle)` The property name to be used to set the name of the field, where the salt style is stored inside
    `MongoAuthOptions` | `setShared(boolean shared)` Use a shared Mongo client or not.
    `MongoAuthOptions` | `setUsernameCredentialField(String usernameCredentialField)` The property name to be used to set the name of the field, where the username for the credentials is stored inside.
    `MongoAuthOptions` | `setUsernameField(String usernameField)` The property name to be used to set the name of the field, where the username is stored inside.

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MongoAuthOptions

          public MongoAuthOptions()

    - #### MongoAuthOptions

          public MongoAuthOptions(MongoAuthOptions that)

    - #### MongoAuthOptions

          public MongoAuthOptions(JsonObject json)

  - ### Method Detail

    - #### clone

          public MongoAuthOptions clone()

      Specified by:
        `clone` in interface `AuthOptions`
      Overrides:
        `clone` in class `Object`

    - #### createProvider

          public MongoAuth createProvider(Vertx vertx)

      Description copied from interface: `AuthOptions`
      Create the suitable provider for this option.
      Specified by:
        `createProvider` in interface `AuthOptions`
      Parameters:
        `vertx` - the vertx instance
      Returns:
        the auth provider

    - #### getShared

          public boolean getShared()

    - #### setShared

          public MongoAuthOptions setShared(boolean shared)

      Use a shared Mongo client or not.
      Parameters:
        `shared` - true to use a shared client
      Returns:
        a reference to this, so the API can be used fluently

    - #### getDatasourceName

          public String getDatasourceName()

    - #### setDatasourceName

          public MongoAuthOptions setDatasourceName(String datasourceName)

      The mongo data source name: see Mongo Client documentation.
      Parameters:
        `datasourceName` - the data source name
      Returns:
        a reference to this, so the API can be used fluently

    - #### getConfig

          public JsonObject getConfig()

    - #### setConfig

          public MongoAuthOptions setConfig(JsonObject config)

      The mongo client configuration: see Mongo Client documentation.
      Parameters:
        `config` - the mongo config
      Returns:
        a reference to this, so the API can be used fluently

    - #### getCollectionName

          public String getCollectionName()

    - #### setCollectionName

          public MongoAuthOptions setCollectionName(String collectionName)

      The property name to be used to set the name of the collection inside the config.
      Parameters:
        `collectionName` - the collection name
      Returns:
        a reference to this, so the API can be used fluently

    - #### getUsernameField

          public String getUsernameField()

    - #### setUsernameField

          public MongoAuthOptions setUsernameField(String usernameField)

      The property name to be used to set the name of the field, where the username is stored inside.
      Parameters:
        `usernameField` - the username field
      Returns:
        a reference to this, so the API can be used fluently

    - #### getPasswordField

          public String getPasswordField()

    - #### setPasswordField

          public MongoAuthOptions setPasswordField(String passwordField)

      The property name to be used to set the name of the field, where the password is stored inside
      Parameters:
        `passwordField` - the password field
      Returns:
        a reference to this, so the API can be used fluently

    - #### getRoleField

          public String getRoleField()

    - #### setRoleField

          public MongoAuthOptions setRoleField(String roleField)

      The property name to be used to set the name of the field, where the roles are stored inside.
      Parameters:
        `roleField` - the role field
      Returns:
        a reference to this, so the API can be used fluently

    - #### getPermissionField

          public String getPermissionField()

    - #### setPermissionField

          public MongoAuthOptions setPermissionField(String permissionField)

      The property name to be used to set the name of the field, where the permissions are stored inside.
      Parameters:
        `permissionField` - the permission field
      Returns:
        a reference to this, so the API can be used fluently

    - #### getUsernameCredentialField

          public String getUsernameCredentialField()

    - #### setUsernameCredentialField

          public MongoAuthOptions setUsernameCredentialField(String usernameCredentialField)

      The property name to be used to set the name of the field, where the username for the credentials is stored inside.
      Parameters:
        `usernameCredentialField` - the username credential field
      Returns:
        a reference to this, so the API can be used fluently

    - #### getSaltField

          public String getSaltField()

    - #### setSaltField

          public MongoAuthOptions setSaltField(String saltField)

      The property name to be used to set the name of the field, where the SALT is stored inside.
      Parameters:
        `saltField` - the salt field
      Returns:
        a reference to this, so the API can be used fluently

    - #### getSaltStyle

          public HashSaltStyle getSaltStyle()

    - #### setSaltStyle

          public MongoAuthOptions setSaltStyle(HashSaltStyle saltStyle)

      The property name to be used to set the name of the field, where the salt style is stored inside
      Parameters:
        `saltStyle` - the salt style
      Returns:
        a reference to this, so the API can be used fluently

Copyright © 2019 Eclipse. All rights reserved.