org.ldaptive.auth
Class CompareAuthenticationHandler
java.lang.Object
org.ldaptive.auth.AbstractAuthenticationHandler
org.ldaptive.auth.AbstractCompareAuthenticationHandler
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
CompareAuthenticationHandler
public CompareAuthenticationHandler()
- Default constructor.
CompareAuthenticationHandler
public CompareAuthenticationHandler(ConnectionFactory cf)
- Creates a new compare authentication handler.
- Parameters:
cf - connection factory
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.