| java.lang.Object org.netbeans.lib.collab.util.Socks5SocketChannelAdaptor
Socks5SocketChannelAdaptor | public class Socks5SocketChannelAdaptor (Code) | | A standalone SOCKS V5 SocketChannel provider.
This code is an adaptation of a standalone socket SOCKS 5 client
socket implementation written by Todd Fast and Matt Stevens.
This copying was necessary in order to use SOCKS on a per-socket
basis, as the JDK only allows SOCKS usage across the entire VM.
author: Jacques Belissent author: Matt Stevens, matthew.stevens@sun.com author: Todd Fast, todd.fast@sun.com |
Method Summary | |
public SocketChannel | getChannel() | public static void | main(String[] args) | public static SocketChannel | open(String host, int port, String socksHost, int socksPort, String username, String password) | public static SocketChannel | open(InetAddress address, int port, InetAddress socksAddress, int socksPort, String username, String password) | public static SocketChannel | open(String host, int port, SocketChannel socksProxyChannel, String socksHost, int socksPort, String username, String password) | public String | toString() |
ADDR_TYPE_NOT_SUP | final static byte ADDR_TYPE_NOT_SUP(Code) | | |
BIND | final static byte BIND(Code) | | |
CMD_NOT_SUPPORTED | final static byte CMD_NOT_SUPPORTED(Code) | | |
CONNECT | final static byte CONNECT(Code) | | |
CONN_REFUSED | final static byte CONN_REFUSED(Code) | | |
DEFAULT_PORT | final static int DEFAULT_PORT(Code) | | |
DOMAIN_NAME | final static byte DOMAIN_NAME(Code) | | |
GENERAL_FAILURE | final static byte GENERAL_FAILURE(Code) | | |
GSSAPI | final static byte GSSAPI(Code) | | |
HOST_UNREACHABLE | final static byte HOST_UNREACHABLE(Code) | | |
IPV4 | final static byte IPV4(Code) | | |
IPV6 | final static byte IPV6(Code) | | |
NET_UNREACHABLE | final static byte NET_UNREACHABLE(Code) | | |
NOT_ALLOWED | final static byte NOT_ALLOWED(Code) | | |
NO_AUTH | final static byte NO_AUTH(Code) | | |
NO_METHODS | final static short NO_METHODS(Code) | | |
PROTO_VERS | final static byte PROTO_VERS(Code) | | |
PROTO_VERS4 | final static byte PROTO_VERS4(Code) | | |
REQUEST_OK | final static byte REQUEST_OK(Code) | | |
TTL_EXPIRED | final static byte TTL_EXPIRED(Code) | | |
UDP_ASSOC | final static byte UDP_ASSOC(Code) | | |
USER_PASSW | final static byte USER_PASSW(Code) | | |
open | public static SocketChannel open(String host, int port, String socksHost, int socksPort, String username, String password) throws UnknownHostException, IOException(Code) | | open a connection to a remote host via a SOCKS V5 proxy
Parameters: host - remote host name Parameters: host - remote port Parameters: socksHost - SOCKS 5 proxy server hostname Parameters: socksPort - SOCKS 5 proxy server port Parameters: username - SOCKS authentication credential's identity Parameters: password - SOCKS authentication credential's password |
open | public static SocketChannel open(InetAddress address, int port, InetAddress socksAddress, int socksPort, String username, String password) throws IOException(Code) | | open a connection to a remote host via a SOCKS5 proxy
Parameters: host - remote host name Parameters: host - remote port Parameters: socksAddress - SOCKS 5 proxy server IP address Parameters: socksPort - SOCKS 5 proxy server port Parameters: username - SOCKS authentication credential's identity Parameters: password - SOCKS authentication credential's password |
open | public static SocketChannel open(String host, int port, SocketChannel socksProxyChannel, String socksHost, int socksPort, String username, String password) throws UnknownHostException, IOException(Code) | | open a connection to a remote host via a SOCKS V5 proxy
Parameters: host - remote host name Parameters: host - remote port Parameters: socksProxychannel - preconfigured socks proxy channel Parameters: socksHost - SOCKS 5 proxy server hostname Parameters: socksPort - SOCKS 5 proxy server port Parameters: username - SOCKS authentication credential's identity Parameters: password - SOCKS authentication credential's password |
|
|