public interface KeyManager
NotificationManager.pollForNotificationsAsync(CancellationToken)
is called. The key
manager then takes care of automatically renewing local mobile keys in time.
The SDK does not return the actual mobile keys, but only a set of details about the key.Modifier and Type | Method and Description |
---|---|
Observable<Void> |
getKeyUpdateObservable()
Returns an observable that can be used to receive notifications whenever mobile keys on this
device are updated.
|
Promise<List<KeyDetails>> |
queryLocalKeysAsync(String userId,
CancellationToken cancellationToken)
Returns all mobile keys available for the specified user on this device.
|
Observable<Void> getKeyUpdateObservable()
Promise<List<KeyDetails>> queryLocalKeysAsync(String userId, CancellationToken cancellationToken)
userId
- the ID of the user to get mobile keys for.cancellationToken
- can be used to cancel the operation and listen for cancel events.