Package 

Class MasterKeyKt

    • Method Summary

      Modifier and Type Method Description
      final static MasterKey MasterKey(Context context, String keyAlias, MasterKey.KeyScheme keyScheme, Boolean authenticationRequired, Integer userAuthenticationValidityDurationSeconds, Boolean requestStrongBoxBacked) Creates a MasterKey with the provided parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 the MasterKey.
        keyScheme - The MasterKey.KeyScheme to have the MasterKey use.
        authenticationRequired - true if the user must authenticate for the MasterKey to be used.
        userAuthenticationValidityDurationSeconds - Duration in seconds that the MasterKey is valid for after the user has authenticated.
        requestStrongBoxBacked - true if the key should be stored in Strong Box, if possible.