getToken

open suspend override fun getToken(id: String, promptInfo: BiometricPrompt.PromptInfo?): Token

Get Token from storage with associated id.

Return

Token with the specified id.

Parameters

id

id of the Token to be retrieved.

promptInfo

BiometricPrompt.PromptInfo to be displayed if the stored Token is using biometric Credential.Security.

Throws

NoSuchElementException

if no storage entry with id exists.