Class LdapConfiguration

java.lang.Object
io.micronaut.security.ldap.configuration.LdapConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable

@EachProperty(value="micronaut.security.ldap", primary="default") public class LdapConfiguration extends Object implements io.micronaut.core.util.Toggleable
Configuration for LDAP authentication.
Since:
1.0
Author:
James Kleeh
  • Field Details

  • Method Details

    • getName

      public String getName()
      Returns:
      The name of the configuration
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets whether this configuration is enabled. Default true.
      Parameters:
      enabled - The enabled setting
    • getContext

      Returns:
      The context configuration
    • setContext

      public void setContext(LdapConfiguration.ContextConfiguration contextConfiguration)
      Sets the context configuration.
      Parameters:
      contextConfiguration - The context configuration
    • getSearch

      Returns:
      The search configuration
    • setSearch

      public void setSearch(LdapConfiguration.SearchConfiguration searchConfiguration)
      Sets the search configuration.
      Parameters:
      searchConfiguration - The search configuration
    • getGroups

      Returns:
      The group configuration
    • setGroups

      public void setGroups(LdapConfiguration.GroupConfiguration groupConfiguration)
      Sets the group configuration.
      Parameters:
      groupConfiguration - The group configuration
    • getSettings

      public ContextSettings getSettings(String dn, String password)
      Returns settings for creating a context for a given dn and password.
      Parameters:
      dn - The user dn to bind with
      password - The user password to bind with
      Returns:
      Settings to use to create a context
    • getManagerSettings

      public ContextSettings getManagerSettings()
      Returns:
      Settings for creating a context for the manager.