|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.proxy.AbstractProxyLogicHandler
org.apache.mina.proxy.handlers.socks.AbstractSocksLogicHandler
org.apache.mina.proxy.handlers.socks.Socks5LogicHandler
public class Socks5LogicHandler
Socks5LogicHandler.java - SOCKS5 authentication mechanisms logic handler.
| Field Summary |
|---|
| Fields inherited from class org.apache.mina.proxy.handlers.socks.AbstractSocksLogicHandler |
|---|
request |
| Constructor Summary | |
|---|---|
Socks5LogicHandler(ProxyIoSession proxyIoSession)
|
|
| Method Summary | |
|---|---|
protected void |
closeSession(String message)
Closes the session. |
void |
doHandshake(IoFilter.NextFilter nextFilter)
Performs the handshake process. |
protected void |
handleResponse(IoFilter.NextFilter nextFilter,
IoBuffer buf,
int step)
Handle a SOCKS v5 response from the proxy server. |
void |
messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handles incoming data during the handshake process. |
| Methods inherited from class org.apache.mina.proxy.AbstractProxyLogicHandler |
|---|
closeSession, enqueueWriteRequest, flushPendingWriteRequests, getProxyFilter, getProxyIoSession, getSession, isHandshakeComplete, setHandshakeComplete, writeData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Socks5LogicHandler(ProxyIoSession proxyIoSession)
| Method Detail |
|---|
public void doHandshake(IoFilter.NextFilter nextFilter)
nextFilter - the next filter
public void messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
nextFilter - the next filterbuf - the buffered data received
protected void handleResponse(IoFilter.NextFilter nextFilter,
IoBuffer buf,
int step)
throws Exception
nextFilter - the next filterbuf - the buffered data receivedstep - the current step in the authentication process
Exceptionprotected void closeSession(String message)
GSSContext is present in the session
then it is closed.
closeSession in class AbstractProxyLogicHandlermessage - the error message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||