Package 

Class MasterKeys


  • 
    public final class MasterKeys
    
                        

    Convenient methods to create and obtain master keys in Android Keystore.

    The master keys are used to encrypt data encryption keys for encrypting files and preferences.

    Based on MasterKeys.java from AndroidX Crypto - v1.1.0-alpha07

    Permalink: e50caac

    • Method Summary

      Modifier and Type Method Description
      static String getOrCreate(@NonNull() KeyGenParameterSpec keyGenParameterSpec) Creates or gets the master key providedThe encryption scheme is required fields to ensure that the type of encryption used isclear to developers.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getOrCreate

        @NonNull() static String getOrCreate(@NonNull() KeyGenParameterSpec keyGenParameterSpec)

        Creates or gets the master key provided

        The encryption scheme is required fields to ensure that the type of encryption used isclear to developers.

        Parameters:
        keyGenParameterSpec - The key encryption scheme