public class SocketFactory extends Object
Constructor and Description |
---|
SocketFactory() |
Modifier and Type | Method and Description |
---|---|
Socket |
connect() |
String |
getCiphers() |
InetAddress |
getHost() |
String |
getKeyStorePath() |
int |
getPort() |
String |
getProtocols() |
int |
getTimeout() |
String |
getTrustStorePath() |
boolean |
isSsl() |
SocketFactory |
setCiphers(String ciphers) |
SocketFactory |
setHost(InetAddress host) |
SocketFactory |
setKeyStorePath(String keyStorePath) |
SocketFactory |
setPort(int port) |
SocketFactory |
setProtocols(String protocols) |
SocketFactory |
setTimeout(int timeout) |
SocketFactory |
setTrustStorePath(String trustStorePath) |
public InetAddress getHost()
public SocketFactory setHost(InetAddress host)
public int getPort()
public SocketFactory setPort(int port)
public int getTimeout()
public SocketFactory setTimeout(int timeout)
public String getKeyStorePath()
public SocketFactory setKeyStorePath(String keyStorePath)
public String getTrustStorePath()
public SocketFactory setTrustStorePath(String trustStorePath)
public String getProtocols()
public SocketFactory setProtocols(String protocols)
public String getCiphers()
public SocketFactory setCiphers(String ciphers)
public boolean isSsl()
public Socket connect() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException