-
public final class MasterKeysConvenient 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-alpha07Permalink: e50caac
-
-
Field Summary
Fields Modifier and Type Field Description public final static KeyGenParameterSpecAES256_GCM_SPEC
-
Method Summary
Modifier and Type Method Description static StringgetOrCreate(@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. -
-
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
-
-
-
-