Class LdapConfiguration.ContextConfiguration
java.lang.Object
io.micronaut.security.ldap.configuration.LdapConfiguration.ContextConfiguration
- Enclosing class:
- LdapConfiguration
@ConfigurationProperties("context")
public static class LdapConfiguration.ContextConfiguration
extends Object
The context configuration.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setFactory
(String factory) Sets the context factory class.void
setManagerDn
(String managerDn) Sets the manager DN.void
setManagerPassword
(String managerPassword) Sets the manager password.void
setProperties
(Map<String, Object> properties) Any additional properties that should be passed toInitialDirContext(java.util.Hashtable)
.void
Sets the server URL.
-
Field Details
-
PREFIX
The configuration prefix.- See Also:
-
-
Constructor Details
-
ContextConfiguration
public ContextConfiguration()
-
-
Method Details
-
getServer
- Returns:
- The ldap server URL
-
setServer
Sets the server URL.- Parameters:
server
- The server URL
-
getManagerDn
- Returns:
- The manager DN
-
setManagerDn
Sets the manager DN.- Parameters:
managerDn
- The manager DN
-
getManagerPassword
- Returns:
- The manager password
-
setManagerPassword
Sets the manager password.- Parameters:
managerPassword
- The manager password
-
getFactory
- Returns:
- The context factory class
-
setFactory
Sets the context factory class. Default "com.sun.jndi.ldap.LdapCtxFactory"- Parameters:
factory
- The factory class
-
getProperties
- Returns:
- Any additional properties
-
setProperties
Any additional properties that should be passed toInitialDirContext(java.util.Hashtable)
.- Parameters:
properties
- The additional properties
-