public class BindAuthenticationHandler extends AbstractBindAuthenticationHandler implements ConnectionFactoryManager
| Modifier and Type | Field and Description |
|---|---|
private ConnectionFactory |
factory
Connection factory.
|
logger| Constructor and Description |
|---|
BindAuthenticationHandler()
Default constructor.
|
BindAuthenticationHandler(ConnectionFactory cf)
Creates a new bind authentication handler.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getAuthenticationSaslConfig, setAuthenticationSaslConfigauthenticate, getAuthenticationControls, processRequestControls, setAuthenticationControlsprivate ConnectionFactory factory
public BindAuthenticationHandler()
public BindAuthenticationHandler(ConnectionFactory cf)
cf - connection factorypublic ConnectionFactory getConnectionFactory()
ConnectionFactoryManagergetConnectionFactory in interface ConnectionFactoryManagerpublic void setConnectionFactory(ConnectionFactory cf)
ConnectionFactoryManagersetConnectionFactory in interface ConnectionFactoryManagercf - connection factoryprotected Connection getConnection() throws LdapException
AbstractAuthenticationHandlergetConnection in class AbstractAuthenticationHandlerLdapException - if an error occurs provisioning the connectionprotected AuthenticationHandlerResponse authenticateInternal(Connection c, AuthenticationCriteria criteria) throws LdapException
AbstractAuthenticationHandlerauthenticateInternal in class AbstractAuthenticationHandlerc - to authenticate oncriteria - criteria to authenticate withLdapException - if the authentication failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.