Package org.ldaptive.jaas
Class SearchRoleResolver
- java.lang.Object
-
- org.ldaptive.AbstractFreezable
-
- org.ldaptive.AbstractOperationFactory<SearchRequest,SearchResponse>
-
- org.ldaptive.AbstractSearchOperationFactory
-
- org.ldaptive.jaas.SearchRoleResolver
-
- All Implemented Interfaces:
ConnectionFactoryManager
,Freezable
,RoleResolver
public class SearchRoleResolver extends AbstractSearchOperationFactory implements RoleResolver
Base class for search role resolver implementations.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.AbstractOperationFactory
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, freeze, getEntryHandlers, getReferenceHandlers, getSearchResultHandlers, setEntryHandlers, setReferenceHandlers, setSearchResultHandlers
-
Methods inherited from class org.ldaptive.AbstractOperationFactory
getConnectionFactory, getControlHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferralHandlers, getRequestHandlers, getResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, initializeOperation, setConnectionFactory, setControlHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferralHandlers, setRequestHandlers, setResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlers
-
Methods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozen
-
-
-
-
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
-
toString
public String toString()
- Overrides:
toString
in classAbstractSearchOperationFactory
-
-