rabbit.filter
Class SQLProxyAuth

java.lang.Object
  extended byrabbit.filter.SQLProxyAuth

public class SQLProxyAuth
extends java.lang.Object

This is a filter that requires users to use proxy-authentication, using users in a sql table. Will read the following parameters from the config file:


Constructor Summary
SQLProxyAuth()
           
 
Method Summary
static HTTPHeader doHTTPInFiltering(java.net.Socket socket, HTTPHeader header, Connection con)
          test if a socket/header combination is valid or return a new HTTPHeader.
static void setup(java.util.Properties properties)
          Setup this class with the given properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLProxyAuth

public SQLProxyAuth()
Method Detail

doHTTPInFiltering

public static HTTPHeader doHTTPInFiltering(java.net.Socket socket,
                                           HTTPHeader header,
                                           Connection con)
test if a socket/header combination is valid or return a new HTTPHeader. Check that the user has been authenticate.. Check if we want to cache user info...

Parameters:
socket - the Socket that made the request.
header - the actual request made.
con - the Connection handling the request.
Returns:
null if everything is fine or a HTTPHeader describing the error (like a 403).

setup

public static void setup(java.util.Properties properties)
Setup this class with the given properties.

Parameters:
properties - the new configuration of this class.