Deprecated
(4.2) use SchemeLayeredSocketFactory
SchemeSocketFactory interface for layered sockets such as SSL/TLS.
| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: Socket a new socketthe existing socket socket, String the name of the target host. target, int the port to connect to on the target host port, boolean a flag for closing the underling socket when the created
socket is closed autoClose)Returns a socket connected to the given host that is layered over an existing socket. |
| createLayeredSocket | back to summary |
|---|---|
| public Socket createLayeredSocket(Socket socket, String target, int port, boolean autoClose) throws IOException, UnknownHostException Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.
| |