org.ldaptive.auth
Class CompareAuthenticationHandler

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

public class CompareAuthenticationHandler
extends AbstractCompareAuthenticationHandler
implements ConnectionFactoryManager

Provides an LDAP authentication implementation that leverages a 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
CompareAuthenticationHandler()
          Default constructor.
CompareAuthenticationHandler(ConnectionFactory cf)
          Creates a new compare authentication handler.
 
Method Summary
protected  Connection getConnection()
          Returns a connection that the compare operation should be performed on.
 ConnectionFactory getConnectionFactory()
          Returns the connection factory.
 void setConnectionFactory(ConnectionFactory 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

CompareAuthenticationHandler

public CompareAuthenticationHandler()
Default constructor.


CompareAuthenticationHandler

public CompareAuthenticationHandler(ConnectionFactory cf)
Creates a new compare authentication handler.

Parameters:
cf - connection factory
Method Detail

getConnectionFactory

public ConnectionFactory getConnectionFactory()
Returns the connection factory.

Specified by:
getConnectionFactory in interface ConnectionFactoryManager
Returns:
connection factory

setConnectionFactory

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

Specified by:
setConnectionFactory in interface ConnectionFactoryManager
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.