org.ldaptive.jaas
Class AbstractSearchRoleResolver

java.lang.Object
  extended by org.ldaptive.auth.AbstractSearchOperationFactory
      extended by org.ldaptive.jaas.AbstractSearchRoleResolver
All Implemented Interfaces:
RoleResolver
Direct Known Subclasses:
PooledSearchRoleResolver, SearchRoleResolver

public abstract class AbstractSearchRoleResolver
extends AbstractSearchOperationFactory
implements RoleResolver

Base class for search role resolver implementations.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class org.ldaptive.auth.AbstractSearchOperationFactory
logger
 
Constructor Summary
AbstractSearchRoleResolver()
           
 
Method Summary
protected abstract  Connection getConnection()
          Retrieve a connection that is ready for use.
 Set<LdapRole> search(SearchRequest request)
          Executes a search request and converts any attributes to ldap roles.
 
Methods inherited from class org.ldaptive.auth.AbstractSearchOperationFactory
createSearchOperation, getSearchCache, getSearchExceptionHandler, getSearchResponseHandlers, setSearchCache, setSearchExceptionHandler, setSearchResponseHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSearchRoleResolver

public AbstractSearchRoleResolver()
Method Detail

search

public Set<LdapRole> search(SearchRequest request)
                     throws LdapException
Executes a search request and converts any attributes to ldap roles.

Specified by:
search in interface RoleResolver
Parameters:
request - to execute
Returns:
ldap roles
Throws:
LdapException - if the ldap operation fails

getConnection

protected abstract Connection getConnection()
                                     throws LdapException
Retrieve a connection that is ready for use.

Returns:
connection
Throws:
LdapException - if an error occurs opening the connection


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.