unlockKey
abstract suspend fun unlockKey(alias: String, unlockReason: Reason = Reason.Unspecified): List<KeyUnlockData>
Unlocks a key requiring user authentication.
Returns an empty list if user authentication is not required to unlock the key. Otherwise, it performs user authentication and returns a list of KeyUnlockData objects which can be stored in a KeyUnlockDataProvider and returned as appropriate.
Return
a list of KeyUnlockData objects if user authentication was required and performed, or empty list if not required.
Parameters
alias
the alias of the key to unlock.
unlockReason
the reason for unlocking.
Throws
if there is no key with the given alias.
if user authentication was canceled or failed.