TKMKeyManager
public protocol TKMKeyManager
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 when
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.
-
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.
Declaration
Swift
var keyUpdateObservable: TKMObservable<Void> { get }
-
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.
Declaration
Swift
func queryLocalKeysAsync(userId: String, cancellationToken: TKMCancellationToken) -> TKMPromise<[TKMKeyDetails]>
Parameters
userId
the ID of the user to get mobile keys for.
cancellationToken
can be used to cancel the operation and listen for cancel events.
Return Value
the list of locally available mobile keys.