SSLEngines
public
class
SSLEngines
extends Object
| java.lang.Object | |
| ↳ | android.net.ssl.SSLEngines |
Static utility methods for accessing additional functionality of supported instances of
SSLEngine. Engines from the platform TLS provider will be compatible with all
methods in this class.
Summary
Public methods | |
|---|---|
static
boolean
|
isSupportedEngine(SSLEngine engine)
Returns whether the given engine can be used with the methods in this class. |
static
void
|
setUseSessionTickets(SSLEngine engine, boolean useSessionTickets)
Enables or disables the use of session tickets. |
Inherited methods | |
|---|---|
Public methods
isSupportedEngine
public static boolean isSupportedEngine (SSLEngine engine)
Returns whether the given engine can be used with the methods in this class. In general, only engines from the platform TLS provider are supported.
| Parameters | |
|---|---|
engine |
SSLEngine |
| Returns | |
|---|---|
boolean |
|
setUseSessionTickets
public static void setUseSessionTickets (SSLEngine engine, 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 | |
|---|---|
engine |
SSLEngine: the engine |
useSessionTickets |
boolean: whether to enable or disable the use of session tickets |
| Throws | |
|---|---|
IllegalArgumentException |
if the given engine is not a platform engine |