public abstract class TokenBindingService extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TokenBindingService.TokenBindingKey
Provides the KeyPair information.
|
Modifier and Type | Field and Description |
---|---|
static String |
KEY_ALGORITHM_ECDSAP256 |
static String |
KEY_ALGORITHM_RSA2048_PKCS_1_5 |
static String |
KEY_ALGORITHM_RSA2048_PSS |
Constructor and Description |
---|
TokenBindingService() |
Modifier and Type | Method and Description |
---|---|
abstract void |
deleteAllKeys(ValueCallback<Boolean> callback)
Deletes all the keys (for use when cookies are cleared).
|
abstract void |
deleteKey(Uri origin,
ValueCallback<Boolean> callback)
Deletes specified key (for use when associated cookie is cleared).
|
abstract void |
enableTokenBinding()
Enables the token binding protocol.
|
static TokenBindingService |
getInstance()
Returns the default TokenBinding service instance.
|
abstract void |
getKey(Uri origin,
String[] algorithm,
ValueCallback<TokenBindingService.TokenBindingKey> callback)
Retrieves the key pair for a given origin from the internal
TokenBinding key store asynchronously.
|
public static final String KEY_ALGORITHM_RSA2048_PKCS_1_5
public static final String KEY_ALGORITHM_RSA2048_PSS
public static final String KEY_ALGORITHM_ECDSAP256
public static TokenBindingService getInstance()
public abstract void enableTokenBinding()
IllegalStateException
- if a WebView was already created.public abstract void getKey(Uri origin, String[] algorithm, ValueCallback<TokenBindingService.TokenBindingKey> callback)
origin
- The origin for the server.algorithm
- The list of algorithms. Can be null. An
IllegalArgumentException is thrown if array is empty.callback
- The callback that will be called when key is available.
Cannot be null.public abstract void deleteKey(Uri origin, ValueCallback<Boolean> callback)
origin
- The origin of the server.callback
- The callback that will be called when key is deleted. The
callback parameter (Boolean) will indicate if operation is
successful or if failed. The callback can be null.public abstract void deleteAllKeys(ValueCallback<Boolean> callback)
callback
- The callback that will be called when keys are deleted.
The callback parameter (Boolean) will indicate if operation is
successful or if failed. The callback can be null.