org.littleshoot.proxy
Class DefaultProxyAuthorizationManager

java.lang.Object
  extended by org.littleshoot.proxy.DefaultProxyAuthorizationManager
All Implemented Interfaces:
ProxyAuthorizationManager

public class DefaultProxyAuthorizationManager
extends Object
implements ProxyAuthorizationManager

Default authentication manager that simply processes each authentication handler in the order it was added. See: http://tools.ietf.org/html/rfc2617


Constructor Summary
DefaultProxyAuthorizationManager()
           
 
Method Summary
 void addHandler(ProxyAuthorizationHandler pah)
          Adds the specified ProxyAuthorizationHandler.
 boolean handleProxyAuthorization(org.jboss.netty.handler.codec.http.HttpRequest request, org.jboss.netty.channel.ChannelHandlerContext ctx)
          Handles all aspects of authorizing the specified request, looping through all registered ProxyAuthorizationHandlers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProxyAuthorizationManager

public DefaultProxyAuthorizationManager()
Method Detail

addHandler

public void addHandler(ProxyAuthorizationHandler pah)
Description copied from interface: ProxyAuthorizationManager
Adds the specified ProxyAuthorizationHandler.

Specified by:
addHandler in interface ProxyAuthorizationManager
Parameters:
pah - The ProxyAuthorizationHandler to add.

handleProxyAuthorization

public boolean handleProxyAuthorization(org.jboss.netty.handler.codec.http.HttpRequest request,
                                        org.jboss.netty.channel.ChannelHandlerContext ctx)
Description copied from interface: ProxyAuthorizationManager
Handles all aspects of authorizing the specified request, looping through all registered ProxyAuthorizationHandlers.

Specified by:
handleProxyAuthorization in interface ProxyAuthorizationManager
Parameters:
request - The HTTP request.
ctx - The context, including the underlying channel.
Returns:
true if authorization succeeded, otherwise false.


Copyright © 2009-2013 LittleShoot. All Rights Reserved.