Package io.micronaut.security.ldap.group
Interface LdapGroupProcessor
- All Known Implementing Classes:
 DefaultLdapGroupProcessor
public interface LdapGroupProcessor
Contract to allow the list of groups returned from LDAP to be transformed
 and appended to from other sources.
- Since:
 - 1.0
 - Author:
 - James Kleeh
 
- 
Method Summary
Modifier and TypeMethodDescriptiongetAdditionalGroups(LdapSearchResult result) Provides a way to add additional groups to the ldap group search.process(String attribute, LdapSearchResult result, SearchProvider groupResults) Processes groups returned from LDAP.processGroup(String group) Transform the group into the format required. 
- 
Method Details
- 
process
Set<String> process(String attribute, LdapSearchResult result, SearchProvider groupResults) throws NamingException Processes groups returned from LDAP.- Parameters:
 attribute- The group attribute in the contextresult- The search result of the usergroupResults- The provider responsible for querying LDAP- Returns:
 - The groups to populate in the authentication
 - Throws:
 NamingException- If the search provider fails
 - 
getAdditionalGroups
Provides a way to add additional groups to the ldap group search.- Parameters:
 result- The ldap search result- Returns:
 - Any additional groups that should be added to the authentication
 
 - 
processGroup
Transform the group into the format required.- Parameters:
 group- The group to process- Returns:
 - An optional modified group
 
 
 -