public class PooledBindAuthenticationHandler extends AbstractBindAuthenticationHandler implements PooledConnectionFactoryManager
Modifier and Type | Field and Description |
---|---|
private PooledConnectionFactory |
factory
Connection factory.
|
logger
Constructor and Description |
---|
PooledBindAuthenticationHandler()
Default constructor.
|
PooledBindAuthenticationHandler(PooledConnectionFactory cf)
Creates a new pooled 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.
|
PooledConnectionFactory |
getConnectionFactory()
Returns the connection factory.
|
void |
setConnectionFactory(PooledConnectionFactory cf)
Sets the connection factory.
|
String |
toString() |
getAuthenticationSaslConfig, setAuthenticationSaslConfig
authenticate, getAuthenticationControls, processRequestControls, setAuthenticationControls
private PooledConnectionFactory factory
public PooledBindAuthenticationHandler()
public PooledBindAuthenticationHandler(PooledConnectionFactory cf)
cf
- connection factorypublic PooledConnectionFactory getConnectionFactory()
PooledConnectionFactoryManager
getConnectionFactory
in interface PooledConnectionFactoryManager
public void setConnectionFactory(PooledConnectionFactory cf)
PooledConnectionFactoryManager
setConnectionFactory
in interface PooledConnectionFactoryManager
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.