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.
|
setAuthenticatorConfig
public 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 AuthenticationHandler
authenticate
in class AbstractAuthenticationHandler
ch
- ConnectionHandler
to communicate with the LDAPac
- AuthenticationCriteria
to perform the
authentication withNamingException
- if an LDAP error occurspublic BindAuthenticationHandler newInstance()
newInstance
in interface AuthenticationHandler
newInstance
in class AbstractAuthenticationHandler
Copyright © 2014. All rights reserved.