socks
Class AuthenticationNone
java.lang.Object
socks.AuthenticationNone
- All Implemented Interfaces:
- Authentication
public class AuthenticationNone
- extends Object
- implements Authentication
SOCKS5 none authentication. Dummy class does almost nothing.
|
Method Summary |
Object[] |
doSocksAuthentication(int methodId,
Socket proxySocket)
This method is called when SOCKS5 server have selected a particular
authentication method, for whch an implementaion have been registered. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticationNone
public AuthenticationNone()
doSocksAuthentication
public Object[] doSocksAuthentication(int methodId,
Socket proxySocket)
throws IOException
- Description copied from interface:
Authentication
- This method is called when SOCKS5 server have selected a particular
authentication method, for whch an implementaion have been registered.
This method should return an array {inputstream,outputstream
[,UDPEncapsulation]}. The reason for that is that SOCKS5 protocol
allows to have method specific encapsulation of data on the socket for
purposes of integrity or security. And this encapsulation should be
performed by those streams returned from the method. It is also possible
to encapsulate datagrams. If authentication method supports such
encapsulation an instance of the UDPEncapsulation interface should be
returned as third element of the array, otherwise either null should be
returned as third element, or array should contain only 2 elements.
- Specified by:
doSocksAuthentication in interface Authentication
- Parameters:
methodId - Authentication method selected by the server.proxySocket - Socket used to conect to the proxy.
- Returns:
- Two or three element array containing
Input/Output streams which should be used on this connection.
Third argument is optional and should contain an instance
of UDPEncapsulation. It should be provided if the authentication
method used requires any encapsulation to be done on the
datagrams.
- Throws:
IOException
Copyright © 2012. All Rights Reserved.