Class HttpNTLMAuthLogicHandler
- java.lang.Object
-
- org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
-
- org.apache.mina.proxy.handlers.http.ntlm.HttpNTLMAuthLogicHandler
-
public class HttpNTLMAuthLogicHandler extends AbstractAuthLogicHandler
HttpNTLMAuthLogicHandler.java - HTTP NTLM authentication mechanism logic handler.- Since:
- MINA 2.0.0-M3
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]challengePacketThe challenge provided by the server.private static org.slf4j.LoggerLOGGER-
Fields inherited from class org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
proxyIoSession, request, step
-
-
Constructor Summary
Constructors Constructor Description HttpNTLMAuthLogicHandler(ProxyIoSession proxyIoSession)Build an HttpNTLMAuthLogicHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoHandshake(IoFilter.NextFilter nextFilter)Method called at each step of the handshaking process.private java.lang.StringgetNTLMHeader(HttpProxyResponse response)voidhandleResponse(HttpProxyResponse response)Handles a HTTP response from the proxy server.-
Methods inherited from class org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
addKeepAliveHeaders, writeRequest
-
-
-
-
Constructor Detail
-
HttpNTLMAuthLogicHandler
public HttpNTLMAuthLogicHandler(ProxyIoSession proxyIoSession) throws ProxyAuthException
Build an HttpNTLMAuthLogicHandler- Parameters:
proxyIoSession- The original session- Throws:
ProxyAuthException- If we get an error during the proxy authentication
-
-
Method Detail
-
doHandshake
public void doHandshake(IoFilter.NextFilter nextFilter) throws ProxyAuthException
Method called at each step of the handshaking process.- Specified by:
doHandshakein classAbstractAuthLogicHandler- Parameters:
nextFilter- the next filter- Throws:
ProxyAuthException- If we get an error during the proxy authentication
-
getNTLMHeader
private java.lang.String getNTLMHeader(HttpProxyResponse response)
- Parameters:
response- the proxy response- Returns:
- the value of the NTLM Proxy-Authenticate header.
-
handleResponse
public void handleResponse(HttpProxyResponse response) throws ProxyAuthException
Handles a HTTP response from the proxy server.- Specified by:
handleResponsein classAbstractAuthLogicHandler- Parameters:
response- The HTTP response.- Throws:
ProxyAuthException- If we get an error during the proxy authentication
-
-