Package org.ldaptive.jaas
Class SearchRoleResolver
- java.lang.Object
-
- org.ldaptive.AbstractSearchOperationFactory
-
- org.ldaptive.jaas.SearchRoleResolver
-
- All Implemented Interfaces:
ConnectionFactoryManager
,RoleResolver
public class SearchRoleResolver extends AbstractSearchOperationFactory implements RoleResolver
Base class for search role resolver implementations.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.AbstractSearchOperationFactory
logger
-
-
Constructor Summary
Constructors Constructor Description SearchRoleResolver()
Default constructor.SearchRoleResolver(ConnectionFactory cf)
Creates a new role resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<LdapRole>
search(SearchRequest request)
Executes a search request and converts any attributes to ldap roles.String
toString()
-
Methods inherited from class org.ldaptive.AbstractSearchOperationFactory
createSearchOperation, createSearchOperation, getConnectionFactory, getControlHandlers, getEntryHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferenceHandlers, getReferralHandlers, getRequestHandlers, getResultHandlers, getSearchResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, setConnectionFactory, setControlHandlers, setEntryHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferenceHandlers, setReferralHandlers, setRequestHandlers, setResultHandlers, setSearchResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlers
-
-
-
-
Constructor Detail
-
SearchRoleResolver
public SearchRoleResolver()
Default constructor.
-
SearchRoleResolver
public SearchRoleResolver(ConnectionFactory cf)
Creates a new role resolver.- Parameters:
cf
- connection factory
-
-
Method Detail
-
search
public Set<LdapRole> search(SearchRequest request) throws LdapException
Description copied from interface:RoleResolver
Executes a search request and converts any attributes to ldap roles.- Specified by:
search
in interfaceRoleResolver
- Parameters:
request
- to execute- Returns:
- ldap roles
- Throws:
LdapException
- if the ldap operation fails
-
-