org.littleshoot.proxy
Class DefaultProxyAuthorizationManager
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultProxyAuthorizationManager
public DefaultProxyAuthorizationManager()
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.