MasterKeys
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.
Summary
Public methods |
static String |
Creates or gets the master key provided The encryption scheme is required fields to ensure that the type of encryption used is clear to developers.
|
Public methods
getOrCreate
@NonNull @RequiresApi(23) static fun getOrCreate(@NonNull keyGenParameterSpec: KeyGenParameterSpec): String
Creates or gets the master key provided The encryption scheme is required fields to ensure that the type of encryption used is clear to developers.
Return |
String |
The key alias for the master key |
Properties