org.jasig.cas.authentication.handler.support
Class SimpleTestUsernamePasswordAuthenticationHandler

java.lang.Object
  extended by org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
      extended by org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
          extended by org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler
All Implemented Interfaces:
AuthenticationHandler

public final class SimpleTestUsernamePasswordAuthenticationHandler
extends AbstractUsernamePasswordAuthenticationHandler

Simple test implementation of a AuthenticationHandler that returns true if the username and password match. This class should never be enabled in a production environment and is only designed to facilitate unit testing and load testing.

Since:
3.0
Version:
$Revision: 42053 $ $Date: 2007-06-10 09:17:55 -0400 (Sun, 10 Jun 2007) $
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
log
 
Constructor Summary
SimpleTestUsernamePasswordAuthenticationHandler()
           
 
Method Summary
 boolean authenticateUsernamePasswordInternal(UsernamePasswordCredentials credentials)
          Abstract convenience method that assumes the credentials passed in are a subclass of UsernamePasswordCredentials.
 
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
 

Constructor Detail

SimpleTestUsernamePasswordAuthenticationHandler

public SimpleTestUsernamePasswordAuthenticationHandler()
Method Detail

authenticateUsernamePasswordInternal

public boolean authenticateUsernamePasswordInternal(UsernamePasswordCredentials credentials)
Description copied from class: AbstractUsernamePasswordAuthenticationHandler
Abstract convenience method that assumes the credentials passed in are a subclass of UsernamePasswordCredentials.

Specified by:
authenticateUsernamePasswordInternal in class AbstractUsernamePasswordAuthenticationHandler
Parameters:
credentials - the credentials representing the Username and Password presented to CAS
Returns:
true if the credentials are authentic, false otherwise.


Copyright 2004-2007 Java Architectures Special Interest Group. All Rights Reserved.