Package com.tapkey.mobile.manager
Interface KeyManager
-
public interface KeyManager
The key manager provides access to the available mobile keys on this device. The SDK fetches mobile keys for all logged-in users and stores them locally whenNotificationManager.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
KeyManager.KeyChangedEvent
static class
KeyManager.KeyChangedType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Observable<KeyManager.KeyChangedEvent>
getKeyUpdateObservable()
Returns an observable that can be used to receive notifications whenever mobile keys on this device are updated.List<KeyDetails>
getLocalKeys(String userId)
Returns all mobile keys available for the specified user on this device.
-
-
-
Method Detail
-
getKeyUpdateObservable
Observable<KeyManager.KeyChangedEvent> getKeyUpdateObservable()
Returns an observable that can be used to receive notifications whenever mobile keys on this device are updated. Note that subscribing to this observable does not fetch or update keys from the Tapkey Trust Service.- Returns:
- an Observable that will fire whenever keys are added, updated or removed.
-
getLocalKeys
List<KeyDetails> getLocalKeys(String userId)
Returns all mobile keys available for the specified user on this device. Note that this method does not fetch or update keys from the Tapkey Trust Service.- Parameters:
userId
- the ID of the user to get mobile keys for.- Returns:
- the list of locally available mobile keys.
-
-