EncryptedSharedPreferences.PrefValueEncryptionScheme


public enum EncryptedSharedPreferences.PrefValueEncryptionScheme


The encryption scheme to encrypt values.

Summary

Enum Values

AES256_GCM

Pref values are encrypted with AES256-GCM.

Public methods

static EncryptedSharedPreferences.PrefValueEncryptionScheme

Returns the enum constant of this type with the specified name.

static EncryptedSharedPreferences.PrefValueEncryptionScheme[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

AES256_GCM

EncryptedSharedPreferences.PrefValueEncryptionScheme EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM

Pref values are encrypted with AES256-GCM. The associated data is the encrypted pref key.

For more information please see the Tink documentation:

AesGcmKeyManager.aes256GcmTemplate()

Public methods

valueOf

Added in 1.0.0
public static EncryptedSharedPreferences.PrefValueEncryptionScheme valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
EncryptedSharedPreferences.PrefValueEncryptionScheme

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 1.0.0
public static EncryptedSharedPreferences.PrefValueEncryptionScheme[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
EncryptedSharedPreferences.PrefValueEncryptionScheme[]

an array containing the constants of this enum type, in the order they're declared