edu.vt.middleware.ldap.auth.handler
Class BindAuthenticationHandler
java.lang.Object
edu.vt.middleware.ldap.auth.handler.AbstractAuthenticationHandler
edu.vt.middleware.ldap.auth.handler.BindAuthenticationHandler
- All Implemented Interfaces:
- AuthenticationHandler
public class BindAuthenticationHandler
- extends AbstractAuthenticationHandler
BindAuthenticationHandler provides an LDAP authentication
implementation that leverages the LDAP bind operation.
- Version:
- $Revision: 1330 $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindAuthenticationHandler
public BindAuthenticationHandler()
- Default constructor.
BindAuthenticationHandler
public BindAuthenticationHandler(AuthenticatorConfig ac)
- Creates a new
BindAuthenticationHandler with the supplied
authenticator config.
- Parameters:
ac - authenticator config
authenticate
public void authenticate(ConnectionHandler ch,
AuthenticationCriteria ac)
throws NamingException
- Perform an ldap authentication. Implementations should throw
AuthenticationException to indicate an authentication failure. The
resulting LdapContext can be retrieved from the connection
handler if it is needed.
- Specified by:
authenticate in interface AuthenticationHandler- Specified by:
authenticate in class AbstractAuthenticationHandler
- Parameters:
ch - ConnectionHandler to communicate with the LDAPac - AuthenticationCriteria to perform the
authentication with
- Throws:
NamingException - if an LDAP error occurs
newInstance
public BindAuthenticationHandler newInstance()
- Returns a separate instance of this authentication handler.
- Specified by:
newInstance in interface AuthenticationHandler- Specified by:
newInstance in class AbstractAuthenticationHandler
- Returns:
- authentication handler
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.