public class AuthenticationNone extends Object implements Authentication
Constructor and Description |
---|
AuthenticationNone() |
Modifier and Type | Method and Description |
---|---|
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.
|
public Object[] doSocksAuthentication(int methodId, Socket proxySocket) throws IOException
Authentication
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.
doSocksAuthentication
in interface Authentication
methodId
- Authentication method selected by the server.proxySocket
- Socket used to conect to the proxy.IOException
Copyright © 2024. All rights reserved.