public class HttpBasicAuthLogicHandler extends AbstractAuthLogicHandler
proxyIoSession, request, step| Constructor and Description |
|---|
HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
createAuthorization(java.lang.String username,
java.lang.String password)
Computes the authorization header value.
|
void |
doHandshake(IoFilter.NextFilter nextFilter)
Method called at each step of the handshaking process.
|
void |
handleResponse(HttpProxyResponse response)
Handles a HTTP response from the proxy server.
|
addKeepAliveHeaders, writeRequestpublic HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession) throws ProxyAuthException
ProxyAuthExceptionpublic void doHandshake(IoFilter.NextFilter nextFilter) throws ProxyAuthException
doHandshake in class AbstractAuthLogicHandlernextFilter - the next filterProxyAuthExceptionpublic static java.lang.String createAuthorization(java.lang.String username,
java.lang.String password)
username - the user namepassword - the user passwordpublic void handleResponse(HttpProxyResponse response) throws ProxyAuthException
handleResponse in class AbstractAuthLogicHandlerresponse - The HTTP response.ProxyAuthException