org.jasig.cas.adaptors.jdbc
Class QueryDatabaseAuthenticationHandler
java.lang.Object
org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
org.jasig.cas.adaptors.jdbc.AbstractJdbcUsernamePasswordAuthenticationHandler
org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler
- All Implemented Interfaces:
- org.jasig.cas.authentication.handler.AuthenticationHandler
public final class QueryDatabaseAuthenticationHandler
- extends AbstractJdbcUsernamePasswordAuthenticationHandler
Class that if provided a query that returns a password (parameter of query
must be username) will compare that password to a translated version of the
password provided by the user. If they match, then authentication succeeds.
Default password translator is plaintext translator.
- Since:
- 3.0
- Version:
- $Revision: 42053 $ $Date: 2007-06-10 09:17:55 -0400 (Sun, 10 Jun 2007) $
- Author:
- Scott Battaglia, Dmitriy Kopylenko
| Fields inherited from class org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler |
log |
| Methods inherited from class org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler |
doAuthentication, getPasswordEncoder, setClassToSupport, setPasswordEncoder, setSupportSubClasses, supports |
| Methods inherited from class org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler |
authenticate, postAuthenticate, preAuthenticate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryDatabaseAuthenticationHandler
public QueryDatabaseAuthenticationHandler()
authenticateUsernamePasswordInternal
protected final boolean authenticateUsernamePasswordInternal(org.jasig.cas.authentication.principal.UsernamePasswordCredentials credentials)
throws org.jasig.cas.authentication.handler.AuthenticationException
- Specified by:
authenticateUsernamePasswordInternal in class org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
- Throws:
org.jasig.cas.authentication.handler.AuthenticationException
setSql
public void setSql(java.lang.String sql)
- Parameters:
sql - The sql to set.
Copyright © 2004-2007 Java Architectures Special Interest Group. All Rights Reserved.