Package org.ldaptive.auth
Class SimpleBindAuthenticationHandler
java.lang.Object
org.ldaptive.auth.AbstractAuthenticationHandler
org.ldaptive.auth.SimpleBindAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
,ConnectionFactoryManager
public class SimpleBindAuthenticationHandler
extends AbstractAuthenticationHandler
implements ConnectionFactoryManager
Provides an LDAP authentication implementation that leverages the LDAP bind operation.
-
Field Summary
Fields inherited from class org.ldaptive.auth.AbstractAuthenticationHandler
logger
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Creates a new simple bind authentication handler. -
Method Summary
Modifier and TypeMethodDescriptionprotected AuthenticationHandlerResponse
authenticateInternal
(Connection c, AuthenticationCriteria criteria) Authenticate on the supplied connection using the supplied criteria.toString()
Methods inherited from class org.ldaptive.auth.AbstractAuthenticationHandler
authenticate, getAuthenticationControls, getConnectionFactory, processRequestControls, setAuthenticationControls, setConnectionFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ldaptive.ConnectionFactoryManager
getConnectionFactory, setConnectionFactory
-
Constructor Details
-
SimpleBindAuthenticationHandler
public SimpleBindAuthenticationHandler()Default constructor. -
SimpleBindAuthenticationHandler
Creates a new simple bind authentication handler.- Parameters:
cf
- connection factory
-
-
Method Details
-
authenticateInternal
protected AuthenticationHandlerResponse authenticateInternal(Connection c, AuthenticationCriteria criteria) throws LdapException Description copied from class:AbstractAuthenticationHandler
Authenticate on the supplied connection using the supplied criteria.- Specified by:
authenticateInternal
in classAbstractAuthenticationHandler
- Parameters:
c
- to authenticate oncriteria
- criteria to authenticate with- Returns:
- authentication handler response
- Throws:
LdapException
- if the authentication fails
-
toString
-