android-components / mozilla.components.lib.dataprotect / Keystore / generateKey

generateKey

fun generateKey(): Boolean (source)

Generates the managed key if it does not already exist.

Exceptions

GeneralSecurityException - If the key could not be created

Return
true if a new key was generated; false if the key already exists and can be used.