getPrivateKey

suspend fun getPrivateKey(alias: String, keyUnlockData: KeyUnlockData?): PrivateKey

Gets the underlying private key.

Return

a PrivateKey.

Parameters

alias

the alias for the key.

keyUnlockData

unlock data, or null.

Throws

if no key with the given alias exists.

if the key needs unlocking.