public class SSLSocks5 extends Socks5
SSLSocks5
represents a SSL based SOCKS5 proxy. It will create a SSL based
connection between the client and SOCKS5 server.Socks5
AUTHENTICATION_SUCCEEDED, logger, REP_ADDRESS_TYPE_NOT_SUPPORTED, REP_COMMAND_NOT_SUPPORTED, REP_CONNECTION_NOT_ALLOWED_BY_RULESET, REP_CONNECTION_REFUSED, REP_GENERAL_SOCKS_SERVER_FAILURE, REP_HOST_UNREACHABLE, REP_NETWORK_UNREACHABLE, REP_SUCCEEDED, REP_TTL_EXPIRED, RESERVED, SOCKS_VERSION
SOCKS_DEFAULT_PORT
Constructor and Description |
---|
SSLSocks5(InetAddress address,
int port,
SSLConfiguration configuration) |
SSLSocks5(SocketAddress address,
SSLConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
SocksProxy |
copy()
This method can create a same SocksProxy instance.
|
SocksProxy |
copyWithoutChainProxy()
Copy the
SocksProxy . |
Socket |
createProxySocket()
Creates a unconnected socket.
|
Socket |
createProxySocket(InetAddress address,
int port)
Creates a proxy socket.
|
SSLConfiguration |
getConfiguration() |
void |
setConfiguration(SSLConfiguration configuration) |
accept, buildConnection, getAcceptableMethods, getChainProxy, getCredentials, getInetAddress, getInputStream, getOutputStream, getPort, getProxySocket, getSocksMethodRequestor, getSocksVersion, isAlwaysResolveAddressLocally, requestBind, requestBind, requestConnect, requestConnect, requestConnect, requestUdpAssociat, requestUdpAssociat, setAcceptableMethods, setAlwaysResolveAddressLocally, setChainProxy, setCredentials, setHost, setInetAddress, setPort, setProxySocket, setSocksMethodRequestor, toString
public SSLSocks5(SocketAddress address, SSLConfiguration configuration)
public SSLSocks5(InetAddress address, int port, SSLConfiguration configuration)
public Socket createProxySocket(InetAddress address, int port) throws IOException
SocksProxy
createProxySocket
in interface SocksProxy
createProxySocket
in class Socks5
address
- address.port
- port.IOException
- If an I\O error occurred.public Socket createProxySocket() throws IOException
SocksProxy
createProxySocket
in interface SocksProxy
createProxySocket
in class Socks5
IOException
public SocksProxy copy()
SocksProxy
The new instance created by this method has the same properties with the original instance, but they have different socket instance. The new instance's socket is also unconnected.
copy
in interface SocksProxy
copy
in class Socks5
public SocksProxy copyWithoutChainProxy()
SocksProxy
SocksProxy
. It will copy all properties of the
SocksProxy
but without chain proxy.copyWithoutChainProxy
in interface SocksProxy
copyWithoutChainProxy
in class Socks5
public SSLConfiguration getConfiguration()
public void setConfiguration(SSLConfiguration configuration)
Copyright © 2015. All rights reserved.