|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.auth.AbstractAuthenticationHandler
org.ldaptive.auth.AbstractBindAuthenticationHandler
org.ldaptive.auth.BindAuthenticationHandler
public class BindAuthenticationHandler
Provides an LDAP authentication implementation that leverages the LDAP bind operation.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.auth.AbstractAuthenticationHandler |
|---|
logger |
| Constructor Summary | |
|---|---|
BindAuthenticationHandler()
Default constructor. |
|
BindAuthenticationHandler(ConnectionFactory cf)
Creates a new bind authentication handler. |
|
| Method Summary | |
|---|---|
protected AuthenticationHandlerResponse |
authenticateInternal(Connection c,
AuthenticationCriteria criteria)
Authenticate on the supplied connection using the supplied criteria. |
protected Connection |
getConnection()
Returns a connection that the authentication 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.AbstractBindAuthenticationHandler |
|---|
getAuthenticationSaslConfig, setAuthenticationSaslConfig |
| Methods inherited from class org.ldaptive.auth.AbstractAuthenticationHandler |
|---|
authenticate, getAuthenticationControls, setAuthenticationControls |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BindAuthenticationHandler()
public BindAuthenticationHandler(ConnectionFactory cf)
cf - connection factory| Method Detail |
|---|
public ConnectionFactory getConnectionFactory()
getConnectionFactory in interface ConnectionFactoryManagerpublic void setConnectionFactory(ConnectionFactory cf)
setConnectionFactory in interface ConnectionFactoryManagercf - connection factory
protected Connection getConnection()
throws LdapException
getConnection in class AbstractAuthenticationHandlerLdapException - if an error occurs provisioning the connection
protected AuthenticationHandlerResponse authenticateInternal(Connection c,
AuthenticationCriteria criteria)
throws LdapException
authenticateInternal in class AbstractAuthenticationHandlerc - to authenticate oncriteria - criteria to authenticate with
LdapException - if the authentication failspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||