EncryptedSharedPreferences.PrefValueEncryptionScheme


enum EncryptedSharedPreferences.PrefValueEncryptionScheme


The encryption scheme to encrypt values.

Summary

Enum Values

AES256_GCM

Pref values are encrypted with AES256-GCM.

Public functions

java-static EncryptedSharedPreferences.PrefValueEncryptionScheme!
valueOf(name: String!)

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

java-static Array<EncryptedSharedPreferences.PrefValueEncryptionScheme!>!

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

Enum Values

AES256_GCM

val EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCMEncryptedSharedPreferences.PrefValueEncryptionScheme

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 functions

valueOf

Added in 1.0.0
java-static fun valueOf(name: String!): EncryptedSharedPreferences.PrefValueEncryptionScheme!

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
java-static fun values(): Array<EncryptedSharedPreferences.PrefValueEncryptionScheme!>!

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
Array<EncryptedSharedPreferences.PrefValueEncryptionScheme!>!

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