Class MongoAuthenticationOptions

java.lang.Object
io.vertx.ext.auth.mongo.MongoAuthenticationOptions

public class MongoAuthenticationOptions extends Object
Options configuring Mongo authentication.
Author:
francoisprunier
  • Constructor Details

    • MongoAuthenticationOptions

      public MongoAuthenticationOptions()
    • MongoAuthenticationOptions

      public MongoAuthenticationOptions(JsonObject json)
  • Method Details

    • getCollectionName

      public String getCollectionName()
    • setCollectionName

      public MongoAuthenticationOptions 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 MongoAuthenticationOptions 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 MongoAuthenticationOptions 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
    • getUsernameCredentialField

      public String getUsernameCredentialField()
    • setUsernameCredentialField

      public MongoAuthenticationOptions 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
    • getPasswordCredentialField

      public String getPasswordCredentialField()
    • setPasswordCredentialField

      public MongoAuthenticationOptions setPasswordCredentialField(String passwordCredentialField)