public abstract class AbstractAuthenticationHandler extends Object implements AuthenticationHandler
Modifier and Type | Field and Description |
---|---|
protected AuthenticatorConfig |
config
Authenticator configuration.
|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
Constructor and Description |
---|
AbstractAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
authenticate(ConnectionHandler ch,
AuthenticationCriteria ac)
Perform an ldap authentication.
|
abstract AuthenticationHandler |
newInstance()
Returns a separate instance of this authentication handler.
|
void |
setAuthenticatorConfig(AuthenticatorConfig ac)
Sets the authenticator configuration.
|
protected final org.apache.commons.logging.Log logger
protected AuthenticatorConfig config
public void setAuthenticatorConfig(AuthenticatorConfig ac)
setAuthenticatorConfig
in interface AuthenticationHandler
ac
- authenticator configpublic abstract void authenticate(ConnectionHandler ch, AuthenticationCriteria ac) throws NamingException
AuthenticationException
to indicate an authentication failure. The
resulting LdapContext
can be retrieved from the connection
handler if it is needed.authenticate
in interface AuthenticationHandler
ch
- ConnectionHandler
to communicate with the LDAPac
- AuthenticationCriteria
to perform the
authentication withNamingException
- if an LDAP error occurspublic abstract AuthenticationHandler newInstance()
newInstance
in interface AuthenticationHandler
Copyright © 2014. All rights reserved.