public class Socks5ProxyHandlerFactory extends Object implements ProxyHandlerFactory
ProxyHandlerFactory
implementation that creates Socks5ProxyHandler
instances.Constructor and Description |
---|
Socks5ProxyHandlerFactory(SocketAddress proxyAddress)
Creates a new proxy handler factory that will create SOCKS5 proxy handlers that use the proxy at the given
address and that will not perform authentication.
|
Socks5ProxyHandlerFactory(SocketAddress proxyAddress,
String username,
String password)
Creates a new proxy handler factory that will create SOCKS5 proxy handlers that use the proxy at the given
address and that will authenticate with the given username and password.
|
Modifier and Type | Method and Description |
---|---|
ProxyHandler |
createProxyHandler()
Constructs a new proxy handler.
|
public Socks5ProxyHandlerFactory(SocketAddress proxyAddress)
proxyAddress
- the address of the SOCKS5 proxy serverpublic Socks5ProxyHandlerFactory(SocketAddress proxyAddress, String username, String password)
proxyAddress
- the address of the SOCKS5 proxy serverusername
- the username to use when connecting to the given proxy serverpassword
- the password to use when connecting to the given proxy serverpublic ProxyHandler createProxyHandler()
ProxyHandlerFactory
createProxyHandler
in interface ProxyHandlerFactory
null
Copyright © 2013–2016 RelayRides. All rights reserved.