edu.vt.middleware.ldap.auth.handler
public interface AuthenticationHandler
AuthenticationHandler
provides an interface for LDAP
authentication implementations.Modifier and Type | Method and Description |
---|---|
void |
authenticate(ConnectionHandler ch,
AuthenticationCriteria ac)
Perform an ldap authentication.
|
AuthenticationHandler |
newInstance()
Returns a separate instance of this authentication handler.
|
void |
setAuthenticatorConfig(AuthenticatorConfig ac)
Sets the authenticator configuration.
|
void setAuthenticatorConfig(AuthenticatorConfig ac)
ac
- authenticator configvoid authenticate(ConnectionHandler ch, AuthenticationCriteria ac) throws javax.naming.NamingException
AuthenticationException
to indicate an authentication failure. The
resulting LdapContext
can be retrieved from the connection
handler if it is needed.ch
- ConnectionHandler
to communicate with the LDAPac
- AuthenticationCriteria
to perform the
authentication withAuthenticationException
- if authentication failsjavax.naming.NamingException
- if an LDAP error occursAuthenticationHandler newInstance()
Copyright © 2014. All Rights Reserved.