net.sf.deadbolt.handlers
Class IPFilterHandler

java.lang.Object
  extended bynet.sf.deadbolt.handlers.DeadboltHandler
      extended bynet.sf.deadbolt.handlers.IPFilterHandler

public class IPFilterHandler
extends DeadboltHandler

This class is used to restrict or allow access to resources based on the user's IP address.

Author:
Tim Solley

Constructor Summary
IPFilterHandler()
           
 
Method Summary
 boolean authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Room room)
          This is the standard Deadbolt authenticate method.
 
Methods inherited from class net.sf.deadbolt.handlers.DeadboltHandler
addErrorKey, addErrorMessage, addErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPFilterHandler

public IPFilterHandler()
Method Detail

authenticate

public boolean authenticate(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            Room room)
This is the standard Deadbolt authenticate method. It will reject or allow access to resources based on what parameter and addresses are specified in the Deadbolt descriptor.

Specified by:
authenticate in class DeadboltHandler
Parameters:
request -
response -
Returns:
Whether to let the user pass this handler or not.


Copyright © 2005 Tim Solley. All Rights Reserved.