public class BindAuthenticationHandler extends AbstractAuthenticationHandler
BindAuthenticationHandler provides an LDAP authentication
implementation that leverages the LDAP bind operation.config, logger| Constructor and Description |
|---|
BindAuthenticationHandler()
Default constructor.
|
BindAuthenticationHandler(AuthenticatorConfig ac)
Creates a new
BindAuthenticationHandler with the supplied
authenticator config. |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(ConnectionHandler ch,
AuthenticationCriteria ac)
Perform an ldap authentication.
|
BindAuthenticationHandler |
newInstance()
Returns a separate instance of this authentication handler.
|
setAuthenticatorConfigpublic BindAuthenticationHandler()
public BindAuthenticationHandler(AuthenticatorConfig ac)
BindAuthenticationHandler with the supplied
authenticator config.ac - authenticator configpublic 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 AuthenticationHandlerauthenticate in class AbstractAuthenticationHandlerch - ConnectionHandler to communicate with the LDAPac - AuthenticationCriteria to perform the
authentication withNamingException - if an LDAP error occurspublic BindAuthenticationHandler newInstance()
newInstance in interface AuthenticationHandlernewInstance in class AbstractAuthenticationHandlerCopyright © 2014. All rights reserved.