| java.lang.Object | |||
| ↳ | javax.net.SocketFactory | ||
| ↳ | javax.net.ssl.SSLSocketFactory | ||
| ↳ | android.net.SSLCertificateSocketFactory | ||
SSLSocketFactory implementation with several extra features:
SSLSessionCache
createSocket() and
connect(SocketAddress, int).
On development devices, "setprop socket.relaxsslcheck yes" bypasses all SSL certificate checks, for testing with development servers.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
Use
getDefault(int) instead. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new socket which is connected to the remote host specified by
the parameters
host and port. | |||||||||||
Creates a new socket which is connected to the remote host specified by
the InetAddress
address. | |||||||||||
Creates a new socket which is not connected to any remote host.
| |||||||||||
Creates a new socket which is connected to the remote host specified by
the parameters
host and port. | |||||||||||
Creates a new socket which is connected to the remote host specified by
the InetAddress
host. | |||||||||||
Creates an
SSLSocket over the specified socket that is connected
to the specified host at the specified port. | |||||||||||
Returns a new socket factory instance with an optional handshake timeout
and SSL session cache.
| |||||||||||
Returns a new socket factory instance with an optional handshake timeout.
| |||||||||||
Returns the names of the cipher suites that are enabled by default.
| |||||||||||
Returns a socket factory (also named SSLSocketFactory, but in a different
namespace) for use with the Apache HTTP stack.
| |||||||||||
Returns a new instance of a socket factory with all SSL security checks
disabled, using an optional handshake timeout and SSL session cache.
| |||||||||||
Returns the names of the cipher suites that are supported and could be
enabled for an SSL connection.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class javax.net.ssl.SSLSocketFactory
| |||||||||||
From class javax.net.SocketFactory
| |||||||||||
From class java.lang.Object
| |||||||||||
Creates a new socket which is connected to the remote host specified by
the parameters host and port. The socket is bound to any
available local address and port.
| host | the remote host address the socket has to be connected to. |
|---|---|
| port | the port number of the remote host at which the socket is connected. |
| IOException |
|---|
Creates a new socket which is connected to the remote host specified by
the InetAddress address. The socket is bound to the local network
interface specified by the InetAddress localHost on port localPort.
| addr | the remote host address the socket has to be connected to. |
|---|---|
| port | the port number of the remote host at which the socket is connected. |
| localAddr | the local host address the socket is bound to. |
| localPort | the port number of the local host at which the socket is bound. |
| IOException |
|---|
Creates a new socket which is not connected to any remote host. This
method has to be overridden by a subclass otherwise a SocketException is thrown.
| IOException |
|---|
Creates a new socket which is connected to the remote host specified by
the parameters host and port. The socket is bound to the
local network interface specified by the InetAddress localHost on
port localPort.
| host | the remote host address the socket has to be connected to. |
|---|---|
| port | the port number of the remote host at which the socket is connected. |
| localAddr | the local host address the socket is bound to. |
| localPort | the port number of the local host at which the socket is bound. |
| IOException |
|---|
Creates a new socket which is connected to the remote host specified by
the InetAddress host. The socket is bound to any available local
address and port.
| addr | the host address the socket has to be connected to. |
|---|---|
| port | the port number of the remote host at which the socket is connected. |
| IOException |
|---|
Creates an SSLSocket over the specified socket that is connected
to the specified host at the specified port.
| k | the socket. |
|---|---|
| host | the host. |
| port | the port number. |
| close | true if socket s should be closed when the
created socket is closed, false if the socket
s should be left open. |
| IOException |
|---|
Returns a new socket factory instance with an optional handshake timeout and SSL session cache.
| handshakeTimeoutMillis | to use for SSL connection handshake, or 0 for none. The socket timeout is reset to 0 after the handshake. |
|---|---|
| cache | The SSLClientSessionCache to use, or null for no cache. |
Returns a new socket factory instance with an optional handshake timeout.
| handshakeTimeoutMillis | to use for SSL connection handshake, or 0 for none. The socket timeout is reset to 0 after the handshake. |
|---|
Returns the names of the cipher suites that are enabled by default.
Returns a socket factory (also named SSLSocketFactory, but in a different namespace) for use with the Apache HTTP stack.
| handshakeTimeoutMillis | to use for SSL connection handshake, or 0 for none. The socket timeout is reset to 0 after the handshake. |
|---|---|
| cache | The SSLClientSessionCache to use, or null for no cache. |
Returns a new instance of a socket factory with all SSL security checks disabled, using an optional handshake timeout and SSL session cache. Sockets created using this factory are vulnerable to man-in-the-middle attacks!
| handshakeTimeoutMillis | to use for SSL connection handshake, or 0 for none. The socket timeout is reset to 0 after the handshake. |
|---|---|
| cache | The SSLClientSessionCache to use, or null for no cache. |
Returns the names of the cipher suites that are supported and could be enabled for an SSL connection.