EncryptedFile.Builder
public
static
final
class
EncryptedFile.Builder
extends Object
| java.lang.Object
|
| ↳ |
androidx.security.crypto.EncryptedFile.Builder
|
Builder class to configure EncryptedFile
Summary
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()
|
|
Public constructors
Builder
public Builder (File file,
Context context,
String masterKeyAlias,
EncryptedFile.FileEncryptionScheme fileEncryptionScheme)
| Parameters |
file |
File |
context |
Context |
masterKeyAlias |
String |
fileEncryptionScheme |
EncryptedFile.FileEncryptionScheme |
Public methods
build
public EncryptedFile build ()
| Returns |
EncryptedFile |
An EncryptedFile with the specified parameters.
|
| Throws |
GeneralSecurityException |
|
IOException |
|
setKeysetAlias
public EncryptedFile.Builder setKeysetAlias (String keysetAlias)
| Parameters |
keysetAlias |
String: The alias in the SharedPreferences file to store the keyset. |
setKeysetPrefName
public EncryptedFile.Builder setKeysetPrefName (String keysetPrefName)
| Parameters |
keysetPrefName |
String: The SharedPreferences file to store the keyset. |