SSLSockets
public
class
SSLSockets
extends Object
| java.lang.Object | |
| ↳ | android.net.ssl.SSLSockets |
Static utility methods for accessing additional functionality of supported instances of
SSLSocket. Sockets from the platform TLS provider will be compatible with all
methods in this class.
Summary
Public methods | |
|---|---|
static
boolean
|
isSupportedSocket(SSLSocket socket)
Returns whether the given socket can be used with the methods in this class. |
static
void
|
setUseSessionTickets(SSLSocket socket, boolean useSessionTickets)
Enables or disables the use of session tickets. |
Inherited methods | |
|---|---|
Public methods
isSupportedSocket
public static boolean isSupportedSocket (SSLSocket socket)
Returns whether the given socket can be used with the methods in this class. In general, only sockets from the platform TLS provider are supported.
| Parameters | |
|---|---|
socket |
SSLSocket |
| Returns | |
|---|---|
boolean |
|
setUseSessionTickets
public static void setUseSessionTickets (SSLSocket socket, boolean useSessionTickets)
Enables or disables the use of session tickets.
This function must be called before the handshake is started or it will have no effect.
| Parameters | |
|---|---|
socket |
SSLSocket: the socket |
useSessionTickets |
boolean: whether to enable or disable the use of session tickets |
| Throws | |
|---|---|
IllegalArgumentException |
if the given socket is not a platform socket |