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
Provides an LDAP authentication implementation that leverages the LDAP bind operation.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.auth.AbstractAuthenticationHandler
logger
-
-
Constructor Summary
Constructors Constructor Description SimpleBindAuthenticationHandler()
Default constructor.SimpleBindAuthenticationHandler(ConnectionFactory cf)
Creates a new simple bind authentication handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationHandlerResponse
authenticateInternal(Connection c, AuthenticationCriteria criteria)
Authenticate on the supplied connection using the supplied criteria.String
toString()
-
Methods inherited from class org.ldaptive.auth.AbstractAuthenticationHandler
authenticate, getAuthenticationControls, getConnectionFactory, processRequestControls, setAuthenticationControls, setConnectionFactory
-
-
-
-
Constructor Detail
-
SimpleBindAuthenticationHandler
public SimpleBindAuthenticationHandler()
Default constructor.
-
SimpleBindAuthenticationHandler
public SimpleBindAuthenticationHandler(ConnectionFactory cf)
Creates a new simple bind authentication handler.- Parameters:
cf
- connection factory
-
-
Method Detail
-
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
-
-