-
public final class MasterKeyKt
-
-
Method Summary
-
-
Method Detail
-
MasterKey
final static MasterKey MasterKey(Context context, String keyAlias, MasterKey.KeyScheme keyScheme, Boolean authenticationRequired, Integer userAuthenticationValidityDurationSeconds, Boolean requestStrongBoxBacked)
Creates a MasterKey with the provided parameters.
Based on MasterKey.kt from AndroidX Crypto Ktx - v1.1.0-alpha07
Permalink: e50caac
- Parameters:
context- The context to work with.keyAlias- The alias to use for theMasterKey.keyScheme- The MasterKey.KeyScheme to have theMasterKeyuse.authenticationRequired-trueif the user must authenticate for theMasterKeyto be used.userAuthenticationValidityDurationSeconds- Duration in seconds that theMasterKeyis valid for after the user has authenticated.requestStrongBoxBacked-trueif the key should be stored in Strong Box, if possible.
-
-
-
-