public abstract class AbstractAuthenticationHandler extends Object implements AuthenticationHandler
Modifier and Type | Field and Description |
---|---|
private RequestControl[] |
authenticationControls
controls used by this handler.
|
protected Logger |
logger
Logger for this class.
|
Constructor and Description |
---|
AbstractAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
AuthenticationHandlerResponse |
authenticate(AuthenticationCriteria ac)
Perform an ldap authentication.
|
protected abstract AuthenticationHandlerResponse |
authenticateInternal(Connection c,
AuthenticationCriteria criteria)
Authenticate on the supplied connection using the supplied criteria.
|
RequestControl[] |
getAuthenticationControls()
Returns the controls for this authentication handler.
|
protected abstract Connection |
getConnection()
Returns a connection that the authentication operation should be performed on.
|
protected RequestControl[] |
processRequestControls(AuthenticationCriteria criteria)
Combines request controls in the
AuthenticationRequest with authenticationControls . |
void |
setAuthenticationControls(RequestControl... c)
Sets the controls for this authentication handler.
|
protected final Logger logger
private RequestControl[] authenticationControls
public RequestControl[] getAuthenticationControls()
public void setAuthenticationControls(RequestControl... c)
c
- controls to setpublic AuthenticationHandlerResponse authenticate(AuthenticationCriteria ac) throws LdapException
AuthenticationHandler
authenticate
in interface AuthenticationHandler
ac
- to perform the authentication withLdapException
- if ldap operation failsprotected abstract Connection getConnection() throws LdapException
LdapException
- if an error occurs provisioning the connectionprotected abstract AuthenticationHandlerResponse authenticateInternal(Connection c, AuthenticationCriteria criteria) throws LdapException
c
- to authenticate oncriteria
- criteria to authenticate withLdapException
- if the authentication failsprotected RequestControl[] processRequestControls(AuthenticationCriteria criteria)
AuthenticationRequest
with authenticationControls
.criteria
- containing request controlsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.