java.lang.Object | |||
↳ | javax.net.SocketFactory | ||
↳ | javax.net.ssl.SSLSocketFactory | ||
↳ | android.net.SSLCertificateSocketFactory |
SSLSocketFactory that provides optional (on debug devices, only) skipping of ssl certificfate chain validation and custom read timeouts used just when connecting to the server/negotiating an ssl session. You can skip the ssl certificate checking at runtime by setting socket.relaxsslcheck=yes on devices that do not have have ro.secure set.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Do not use this constructor (will be deprecated).
|
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 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 instance of a socket factory using the specified socket read
timeout while connecting with the server/negotiating an ssl session.
| |||||||||||
Returns the names of the cipher suites that are enabled by default.
| |||||||||||
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
|
Do not use this constructor (will be deprecated). Use getDefault(int) instead.
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.
s | the remote host address the socket has to be connected to. |
---|---|
i | 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
.
inaddr | the remote host address the socket has to be connected to. |
---|---|
i | the port number of the remote host at which the socket is connected. |
inaddr2 | the local host address the socket is bound to. |
j | 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 parameters host
and port
. The socket is bound to the
local network interface specified by the InetAddress localHost
on
port localPort
.
s | the remote host address the socket has to be connected to. |
---|---|
i | the port number of the remote host at which the socket is connected. |
inaddr | the local host address the socket is bound to. |
j | 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.
inaddr | the host address the socket has to be connected to. |
---|---|
i | 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.
socket | the socket. |
---|---|
s | the host. |
i | the port number. |
flag | 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 instance of a socket factory using the specified socket read timeout while connecting with the server/negotiating an ssl session.
socketReadTimeoutForSslHandshake | the socket read timeout used for performing ssl handshake. The socket read timeout is set back to 0 after the handshake. |
---|
Returns the names of the cipher suites that are enabled by default.
Returns the names of the cipher suites that are supported and could be enabled for an SSL connection.