public class SSLSocketFactory extends SocketFactory
| Constructor and Description |
|---|
SSLSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(java.lang.String host,
int port,
int timeout)
Creates a socket and connects it to the specified remote host at the specified remote port.
|
static SocketFactory |
getDefault() |
createSocketpublic static SocketFactory getDefault()
public Socket createSocket(java.lang.String host, int port, int timeout) throws UnknownHostException, IOException
SocketFactorycreateSocket in class SocketFactoryhost - the server hostport - the server portUnknownHostException - if the host is not knownIOException - if an I/O error occurs when creating the socketSocket.Socket(String, int)