net.sf.deadbolt.handlers
Class SQLInjectionHandler

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

public class SQLInjectionHandler
extends DeadboltHandler

This class will secure a Room from SQL injection attacks.

Author:
Tim Solley

Constructor Summary
SQLInjectionHandler()
           
 
Method Summary
 boolean authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Room room)
          This method runs through the parameters in the request and checks them for the keywords that are not allowed.
 
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

SQLInjectionHandler

public SQLInjectionHandler()
Method Detail

authenticate

public boolean authenticate(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            Room room)
This method runs through the parameters in the request and checks them for the keywords that are not allowed.

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.