java.lang.Object | |
↳ | android.security.KeyStoreParameter.Builder |
Builder class for
KeyStoreParameter
objects.
This will build protection parameters for use with the Android KeyStore facility .
This can be used to require that KeyStore entries be stored encrypted.
Example:
KeyStoreParameter params = new KeyStoreParameter.Builder(mContext) .setEncryptionRequired() .build();
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new instance of the
Builder
with the given
context
.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Builds the instance of the
KeyPairGeneratorSpec
.
|
||||||||||
|
Indicates that this key must be encrypted at rest on storage.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new instance of the
Builder
with the given
context
. The
context
passed in may be used to pop up
some UI to ask the user to unlock or initialize the Android KeyStore
facility.
Builds the instance of the
KeyPairGeneratorSpec
.
KeyPairGeneratorSpec
IllegalArgumentException | if a required field is missing |
---|
Indicates that this key must be encrypted at rest on storage. Note that enabling this will require that the user enable a strong lock screen (e.g., PIN, password) before creating or using the generated key is successful.