org.ldaptive.auth
Class PooledCompareAuthenticationHandler

java.lang.Object
  extended by org.ldaptive.auth.AbstractAuthenticationHandler
      extended by org.ldaptive.auth.AbstractCompareAuthenticationHandler
          extended by org.ldaptive.auth.PooledCompareAuthenticationHandler
All Implemented Interfaces:
AuthenticationHandler, PooledConnectionFactoryManager

public class PooledCompareAuthenticationHandler
extends AbstractCompareAuthenticationHandler
implements PooledConnectionFactoryManager

Provides an LDAP authentication implementation that leverages a pool of ldap connections to perform the compare operation against the userPassword attribute. The default password scheme used is 'SHA'.

Version:
$Revision: 3153 $ $Date: 2016-07-28 18:08:55 -0400 (Thu, 28 Jul 2016) $
Author:
Middleware Services

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ldaptive.auth.AbstractCompareAuthenticationHandler
AbstractCompareAuthenticationHandler.Scheme
 
Field Summary
 
Fields inherited from class org.ldaptive.auth.AbstractCompareAuthenticationHandler
DEFAULT_ATTRIBUTE, DEFAULT_SCHEME
 
Fields inherited from class org.ldaptive.auth.AbstractAuthenticationHandler
logger
 
Constructor Summary
PooledCompareAuthenticationHandler()
          Default constructor.
PooledCompareAuthenticationHandler(PooledConnectionFactory cf)
          Creates a new pooled compare authentication handler.
 
Method Summary
protected  Connection getConnection()
          Returns a connection that the compare operation should be performed on.
 PooledConnectionFactory getConnectionFactory()
          Returns the connection factory.
 void setConnectionFactory(PooledConnectionFactory cf)
          Sets the connection factory.
 String toString()
          
 
Methods inherited from class org.ldaptive.auth.AbstractCompareAuthenticationHandler
authenticateInternal, digestCredential, getPasswordAttribute, getPasswordScheme, setPasswordAttribute, setPasswordScheme
 
Methods inherited from class org.ldaptive.auth.AbstractAuthenticationHandler
authenticate, getAuthenticationControls, processRequestControls, setAuthenticationControls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PooledCompareAuthenticationHandler

public PooledCompareAuthenticationHandler()
Default constructor.


PooledCompareAuthenticationHandler

public PooledCompareAuthenticationHandler(PooledConnectionFactory cf)
Creates a new pooled compare authentication handler.

Parameters:
cf - connection factory
Method Detail

getConnectionFactory

public PooledConnectionFactory getConnectionFactory()
Returns the connection factory.

Specified by:
getConnectionFactory in interface PooledConnectionFactoryManager
Returns:
connection factory

setConnectionFactory

public void setConnectionFactory(PooledConnectionFactory cf)
Sets the connection factory.

Specified by:
setConnectionFactory in interface PooledConnectionFactoryManager
Parameters:
cf - connection factory

getConnection

protected Connection getConnection()
                            throws LdapException
Returns a connection that the compare operation should be performed on.

Specified by:
getConnection in class AbstractCompareAuthenticationHandler
Returns:
connection
Throws:
LdapException - if an error occurs provisioning the connection

toString

public String toString()

Overrides:
toString in class Object


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