@EachProperty(value="micronaut.security.ldap",
primary="default")
public class LdapConfiguration
extends java.lang.Object
implements io.micronaut.core.util.Toggleable
Modifier and Type | Class and Description |
---|---|
static class |
LdapConfiguration.ContextConfiguration
The context configuration.
|
static class |
LdapConfiguration.GroupConfiguration
The group configuration.
|
static class |
LdapConfiguration.SearchConfiguration
The user search configuration.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX |
Modifier and Type | Method and Description |
---|---|
LdapConfiguration.ContextConfiguration |
getContext() |
LdapConfiguration.GroupConfiguration |
getGroups() |
ContextSettings |
getManagerSettings() |
java.lang.String |
getName() |
LdapConfiguration.SearchConfiguration |
getSearch() |
ContextSettings |
getSettings(java.lang.String dn,
java.lang.String password)
Returns settings for creating a context for a given dn and password.
|
boolean |
isEnabled() |
void |
setContext(LdapConfiguration.ContextConfiguration contextConfiguration)
Sets the context configuration.
|
void |
setEnabled(boolean enabled)
Sets whether this configuration is enabled.
|
void |
setGroups(LdapConfiguration.GroupConfiguration groupConfiguration)
Sets the group configuration.
|
void |
setSearch(LdapConfiguration.SearchConfiguration searchConfiguration)
Sets the search configuration.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public java.lang.String getName()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- The enabled settingpublic LdapConfiguration.ContextConfiguration getContext()
public void setContext(LdapConfiguration.ContextConfiguration contextConfiguration)
contextConfiguration
- The context configurationpublic LdapConfiguration.SearchConfiguration getSearch()
public void setSearch(LdapConfiguration.SearchConfiguration searchConfiguration)
searchConfiguration
- The search configurationpublic LdapConfiguration.GroupConfiguration getGroups()
public void setGroups(LdapConfiguration.GroupConfiguration groupConfiguration)
groupConfiguration
- The group configurationpublic ContextSettings getSettings(java.lang.String dn, java.lang.String password)
dn
- The user dn to bind withpassword
- The user password to bind withpublic ContextSettings getManagerSettings()