Deprecated
(4.1) use SchemeSocketFactory
| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: the connected socket. The returned object may be different from thesock argument if this factory supports
a layered protocol.the socket to connect, as obtained from
sock, String createSocket.
null indicates that a new socket
should be created and connected.the host to connect to host, int the port to connect to on the host port, InetAddress the local address to bind the socket to, or
localAddress, int null for anythe port on the local machine,
0 or a negative number for any localPort, HttpParams additional params)parameters for connecting
Deprecated
as a consequence of
Connects a socket to the given host.
HttpParams being deprecated.
|
| public Socket | |
| public boolean |
| connectSocket | back to summary |
|---|---|
| public Socket connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params) throws IOException, UnknownHostException, ConnectTimeoutException
Deprecated as a consequence of Connects a socket to the given host.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket() throws IOException Creates a new, unconnected socket.
The socket should subsequently be passed to
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure(Socket sock) throws IllegalArgumentException Checks whether a socket provides a secure connection.
The socket must be As a rule of thumb, plain sockets are not secure and TLS/SSL sockets are secure. However, there may be application specific deviations. For example, a plain socket to a host in the same intranet ("trusted zone") could be considered secure. On the other hand, a TLS/SSL socket could be considered insecure based on the cipher suite chosen for the connection.
| |