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, setAuthenticationSaslConfig
authenticate, getAuthenticationControls, processRequestControls, setAuthenticationControls
private ConnectionFactory factory
public BindAuthenticationHandler()
public BindAuthenticationHandler(ConnectionFactory cf)
cf
- connection factorypublic ConnectionFactory getConnectionFactory()
ConnectionFactoryManager
getConnectionFactory
in interface ConnectionFactoryManager
public void setConnectionFactory(ConnectionFactory cf)
ConnectionFactoryManager
setConnectionFactory
in interface ConnectionFactoryManager
cf
- connection factoryprotected Connection getConnection() throws LdapException
AbstractAuthenticationHandler
getConnection
in class AbstractAuthenticationHandler
LdapException
- if an error occurs provisioning the connectionprotected AuthenticationHandlerResponse authenticateInternal(Connection c, AuthenticationCriteria criteria) throws LdapException
AbstractAuthenticationHandler
authenticateInternal
in class AbstractAuthenticationHandler
c
- to authenticate oncriteria
- criteria to authenticate withLdapException
- if the authentication failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.