EncryptedFileKt

public final class EncryptedFileKt


Summary

Public methods

static final @NonNull EncryptedFile
EncryptedFile(
    Context context,
    File file,
    MasterKey masterKey,
    EncryptedFile.FileEncryptionScheme fileEncryptionScheme,
    String keysetPrefName,
    String keysetAlias
)

Creates an EncryptedFile

Public methods

EncryptedFile

public static final @NonNull EncryptedFile EncryptedFile(
    Context context,
    File file,
    MasterKey masterKey,
    EncryptedFile.FileEncryptionScheme fileEncryptionScheme,
    String keysetPrefName,
    String keysetAlias
)

Creates an EncryptedFile

Parameters
Context context

The context to work with.

File file

The backing File.

MasterKey masterKey

The MasterKey that should be used.

EncryptedFile.FileEncryptionScheme fileEncryptionScheme

The FileEncryptionScheme to use, defaulting to FileEncryptionScheme.AES256_GCM_HKDF_4KB.

String keysetPrefName

The SharedPreferences file to store the keyset for this EncryptedFile.

String keysetAlias

The alias in the SharedPreferences file to store the keyset for this EncryptedFile.