edu.yale.its.tp.cas.auth.provider
Class SampleHandler

java.lang.Object
  |
  +--edu.yale.its.tp.cas.auth.provider.WatchfulPasswordHandler
        |
        +--edu.yale.its.tp.cas.auth.provider.SampleHandler
All Implemented Interfaces:
AuthHandler, PasswordHandler

public class SampleHandler
extends WatchfulPasswordHandler

A simple, dummy authenticator.


Constructor Summary
SampleHandler()
           
 
Method Summary
 boolean authenticate(javax.servlet.ServletRequest request, java.lang.String username, java.lang.String password)
          Returns true if the given request comes from an IP address whose allotment of failed login attemps is within reasonable bounds; false otherwise.
 
Methods inherited from class edu.yale.its.tp.cas.auth.provider.WatchfulPasswordHandler
registerFailure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleHandler

public SampleHandler()
Method Detail

authenticate

public boolean authenticate(javax.servlet.ServletRequest request,
                            java.lang.String username,
                            java.lang.String password)
Description copied from class: WatchfulPasswordHandler
Returns true if the given request comes from an IP address whose allotment of failed login attemps is within reasonable bounds; false otherwise. Note: We don't actually validate the user and password; this functionality must be implemented by subclasses.

Specified by:
authenticate in interface PasswordHandler
Overrides:
authenticate in class WatchfulPasswordHandler