public class SocksProxyFactory extends Object
SocksFactory
represents a factory that can create SocksProxy
instance.Constructor and Description |
---|
SocksProxyFactory() |
Modifier and Type | Method and Description |
---|---|
static SocksProxy |
parse(String value)
Creates a
SocksProxy instance with a string.For example: host,1080 = Socks5.Socks5(String, int)
host,1080,root,123456 = Socks5.Socks5(String, int, Credentials)
host,1080,root,123456,trustKeystorePath,trustKeyStorePassoword = Creates a
SSLSocks5 instance
host,1080,root,123456,trustKeystorePath,trustKeyStorePassoword,keystorePath,
keystorePathPassword = Creates a SSLSocks5 instance which supports client
authentication
|
public static SocksProxy parse(String value) throws UnknownHostException, FileNotFoundException
SocksProxy
instance with a string.Socks5.Socks5(String, int)
Socks5.Socks5(String, int, Credentials)
SSLSocks5
instanceSSLSocks5
instance which supports client
authenticationvalue
- a string.SocksProxy
instance.UnknownHostException
- if the host is unknown.FileNotFoundException
- if file not found.Copyright © 2015. All rights reserved.