org.apache.mina.proxy.handlers.http.basic
Class HttpBasicAuthLogicHandler
java.lang.Object
org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
org.apache.mina.proxy.handlers.http.basic.HttpBasicAuthLogicHandler
public class HttpBasicAuthLogicHandler
- extends AbstractAuthLogicHandler
HttpBasicAuthLogicHandler.java - HTTP Basic authentication mechanism logic handler.
- Since:
- MINA 2.0.0-M3
- Author:
- Apache MINA Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpBasicAuthLogicHandler
public HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession)
throws ProxyAuthException
-
- Throws:
ProxyAuthException
doHandshake
public void doHandshake(IoFilter.NextFilter nextFilter)
throws ProxyAuthException
- Method called at each step of the handshaking process.
- Specified by:
doHandshake
in class AbstractAuthLogicHandler
- Parameters:
nextFilter
- the next filter
- Throws:
ProxyAuthException
createAuthorization
public static java.lang.String createAuthorization(java.lang.String username,
java.lang.String password)
- Computes the authorization header value.
- Parameters:
username
- the user namepassword
- the user password
- Returns:
- the authorization header value as a string
handleResponse
public void handleResponse(HttpProxyResponse response)
throws ProxyAuthException
- Handles a HTTP response from the proxy server.
- Specified by:
handleResponse
in class AbstractAuthLogicHandler
- Parameters:
response
- The HTTP response.
- Throws:
ProxyAuthException
Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.