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
-
-
Field Summary
-
Fields inherited from class edu.vt.middleware.ldap.auth.handler.AbstractAuthenticationHandler
config, logger
-
-
Constructor Summary
Constructors Constructor Description BindAuthenticationHandler()
Default constructor.BindAuthenticationHandler(AuthenticatorConfig ac)
Creates a newBindAuthenticationHandler
with the supplied authenticator config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticate(ConnectionHandler ch, AuthenticationCriteria ac)
Perform an ldap authentication.BindAuthenticationHandler
newInstance()
Returns a separate instance of this authentication handler.-
Methods inherited from class edu.vt.middleware.ldap.auth.handler.AbstractAuthenticationHandler
setAuthenticatorConfig
-
-
-
-
Constructor Detail
-
BindAuthenticationHandler
public BindAuthenticationHandler()
Default constructor.
-
BindAuthenticationHandler
public BindAuthenticationHandler(AuthenticatorConfig ac)
Creates a newBindAuthenticationHandler
with the supplied authenticator config.- Parameters:
ac
- authenticator config
-
-
Method Detail
-
authenticate
public void authenticate(ConnectionHandler ch, AuthenticationCriteria ac) throws javax.naming.NamingException
Perform an ldap authentication. Implementations should throwAuthenticationException
to indicate an authentication failure. The resultingLdapContext
can be retrieved from the connection handler if it is needed.- Specified by:
authenticate
in interfaceAuthenticationHandler
- Specified by:
authenticate
in classAbstractAuthenticationHandler
- Parameters:
ch
-ConnectionHandler
to communicate with the LDAPac
-AuthenticationCriteria
to perform the authentication with- Throws:
javax.naming.NamingException
- if an LDAP error occurs
-
newInstance
public BindAuthenticationHandler newInstance()
Returns a separate instance of this authentication handler.- Specified by:
newInstance
in interfaceAuthenticationHandler
- Specified by:
newInstance
in classAbstractAuthenticationHandler
- Returns:
- authentication handler
-
-