Interface AuthenticationHandler
-
- All Known Implementing Classes:
AbstractAuthenticationHandler,BindAuthenticationHandler,CompareAuthenticationHandler
public interface AuthenticationHandlerAuthenticationHandlerprovides an interface for LDAP authentication implementations.- Version:
- $Revision: 1330 $
- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticate(ConnectionHandler ch, AuthenticationCriteria ac)Perform an ldap authentication.AuthenticationHandlernewInstance()Returns a separate instance of this authentication handler.voidsetAuthenticatorConfig(AuthenticatorConfig ac)Sets the authenticator configuration.
-
-
-
Method Detail
-
setAuthenticatorConfig
void setAuthenticatorConfig(AuthenticatorConfig ac)
Sets the authenticator configuration.- Parameters:
ac- authenticator config
-
authenticate
void authenticate(ConnectionHandler ch, AuthenticationCriteria ac) throws javax.naming.NamingException
Perform an ldap authentication. Implementations should throwAuthenticationExceptionto indicate an authentication failure. The resultingLdapContextcan be retrieved from the connection handler if it is needed.- Parameters:
ch-ConnectionHandlerto communicate with the LDAPac-AuthenticationCriteriato perform the authentication with- Throws:
AuthenticationException- if authentication failsjavax.naming.NamingException- if an LDAP error occurs
-
newInstance
AuthenticationHandler newInstance()
Returns a separate instance of this authentication handler.- Returns:
- authentication handler
-
-