Package org.ldaptive.auth
Class SimpleBindAuthenticationHandler
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.auth.AbstractAuthenticationHandler
org.ldaptive.auth.SimpleBindAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler,ConnectionFactoryManager,Freezable
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 AuthenticationHandlerResponseauthenticateInternal(Connection c, AuthenticationCriteria criteria) Authenticate on the supplied connection using the supplied criteria.toString()Methods inherited from class org.ldaptive.auth.AbstractAuthenticationHandler
authenticate, freeze, getAuthenticationControls, getConnectionFactory, processRequestControls, setAuthenticationControls, setConnectionFactoryMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozen
-
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:AbstractAuthenticationHandlerAuthenticate on the supplied connection using the supplied criteria.- Specified by:
authenticateInternalin classAbstractAuthenticationHandler- Parameters:
c- to authenticate oncriteria- criteria to authenticate with- Returns:
- authentication handler response
- Throws:
LdapException- if the authentication fails
-
toString
- Overrides:
toStringin classAbstractAuthenticationHandler
-