|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.auth.handler.AbstractAuthenticationHandler
edu.vt.middleware.ldap.auth.handler.CompareAuthenticationHandler
public class CompareAuthenticationHandler
CompareAuthenticationHandler provides an LDAP authentication
implementation that leverages a compare operation against the userPassword
attribute. The default password scheme used is 'SHA'.
| Field Summary |
|---|
| Fields inherited from class edu.vt.middleware.ldap.auth.handler.AbstractAuthenticationHandler |
|---|
config, logger |
| Constructor Summary | |
|---|---|
CompareAuthenticationHandler()
Default constructor. |
|
CompareAuthenticationHandler(AuthenticatorConfig ac)
Creates a new CompareAuthenticationHandler with the supplied
authenticator config. |
|
| Method Summary | |
|---|---|
void |
authenticate(ConnectionHandler ch,
AuthenticationCriteria ac)
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. |
String |
getPasswordScheme()
Returns the password scheme. |
CompareAuthenticationHandler |
newInstance()
Returns a separate instance of this authentication handler. |
void |
setPasswordScheme(String s)
Sets the password scheme. |
| Methods inherited from class edu.vt.middleware.ldap.auth.handler.AbstractAuthenticationHandler |
|---|
setAuthenticatorConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompareAuthenticationHandler()
public CompareAuthenticationHandler(AuthenticatorConfig ac)
CompareAuthenticationHandler with the supplied
authenticator config.
ac - authenticator config| Method Detail |
|---|
public String getPasswordScheme()
public void setPasswordScheme(String s)
s - password scheme
public 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 AuthenticationHandlerauthenticate in class AbstractAuthenticationHandlerch - ConnectionHandler to communicate with the LDAPac - AuthenticationCriteria to perform the
authentication with
NamingException - if an LDAP error occurspublic CompareAuthenticationHandler newInstance()
newInstance in interface AuthenticationHandlernewInstance in class AbstractAuthenticationHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||