Class LdapConfiguration.SearchConfiguration
java.lang.Object
io.micronaut.security.ldap.configuration.LdapConfiguration.SearchConfiguration
- Enclosing class:
 - LdapConfiguration
 
@ConfigurationProperties("search")
public static class LdapConfiguration.SearchConfiguration
extends Object
The user search configuration.
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionString[]getBase()getSettings(Object[] arguments) booleanvoidsetAttributes(String[] attributes) Sets the attributes to return.voidSets the base DN to search.voidSets the search filter.voidsetSubtree(boolean subtree) Sets if the subtree should be searched. 
- 
Field Details
- 
PREFIX
The configuration prefix.- See Also:
 
 
 - 
 - 
Constructor Details
- 
SearchConfiguration
public SearchConfiguration() 
 - 
 - 
Method Details
- 
isSubtree
public boolean isSubtree()- Returns:
 - True if the subtree should be searched
 
 - 
setSubtree
public void setSubtree(boolean subtree) Sets if the subtree should be searched. Default true- Parameters:
 subtree- The subtree
 - 
getBase
- Returns:
 - The base DN to search from
 
 - 
setBase
Sets the base DN to search.- Parameters:
 base- The base DN
 - 
getFilter
- Returns:
 - The search filter
 
 - 
setFilter
Sets the search filter. Default "(uid={0})"- Parameters:
 filter- The search filter
 - 
getAttributes
- Returns:
 - The attributes to return. Null if all
 
 - 
setAttributes
Sets the attributes to return. Default all- Parameters:
 attributes- The attributes
 - 
getSettings
- Parameters:
 arguments- The search arguments- Returns:
 - The settings to search for a user
 
 
 -