MasterKeys
public
final
class
MasterKeys
extends Object
| java.lang.Object
|
| ↳ |
androidx.security.crypto.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
|
getOrCreate(KeyGenParameterSpec keyGenParameterSpec)
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.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Fields
Public constructors
MasterKeys
public MasterKeys ()
Public methods
getOrCreate
public static String getOrCreate (KeyGenParameterSpec keyGenParameterSpec)
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.
| Parameters |
keyGenParameterSpec |
KeyGenParameterSpec: The key encryption scheme |
| Returns |
String |
The key alias for the master key
|
| Throws |
GeneralSecurityException |
|
IOException |
|