Class HttpNTLMAuthLogicHandler
java.lang.Object
org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
org.apache.mina.proxy.handlers.http.ntlm.HttpNTLMAuthLogicHandler
HttpNTLMAuthLogicHandler.java - HTTP NTLM authentication mechanism logic handler.
- Since:
- MINA 2.0.0-M3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]The challenge provided by the server.private static final org.slf4j.LoggerFields inherited from class AbstractAuthLogicHandler
proxyIoSession, request, step -
Constructor Summary
ConstructorsConstructorDescriptionHttpNTLMAuthLogicHandler(ProxyIoSession proxyIoSession) Build an HttpNTLMAuthLogicHandler -
Method Summary
Modifier and TypeMethodDescriptionvoiddoHandshake(IoFilter.NextFilter nextFilter) Method called at each step of the handshaking process.private StringgetNTLMHeader(HttpProxyResponse response) voidhandleResponse(HttpProxyResponse response) Handles a HTTP response from the proxy server.Methods inherited from class AbstractAuthLogicHandler
addKeepAliveHeaders, writeRequest
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
challengePacket
private byte[] challengePacketThe challenge provided by the server.
-
-
Constructor Details
-
HttpNTLMAuthLogicHandler
Build an HttpNTLMAuthLogicHandler- Parameters:
proxyIoSession- The original session- Throws:
ProxyAuthException- If we get an error during the proxy authentication
-
-
Method Details
-
doHandshake
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
- Parameters:
response- the proxy response- Returns:
- the value of the NTLM Proxy-Authenticate header.
-
handleResponse
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
-