EncryptedSharedPreferences.PrefKeyEncryptionScheme


enum EncryptedSharedPreferences.PrefKeyEncryptionScheme


The encryption scheme to encrypt keys.

Summary

Enum Values

AES256_SIV

Pref keys are encrypted deterministically with AES256-SIV-CMAC (RFC 5297).

Public functions

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

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

java-static Array<EncryptedSharedPreferences.PrefKeyEncryptionScheme!>!

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

Enum Values

AES256_SIV

val EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIVEncryptedSharedPreferences.PrefKeyEncryptionScheme

Pref keys are encrypted deterministically with AES256-SIV-CMAC (RFC 5297).

For more information please see the Tink documentation:

AesSivKeyManager.aes256SivTemplate()

Public functions

valueOf

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

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.PrefKeyEncryptionScheme!

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.PrefKeyEncryptionScheme!>!

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.PrefKeyEncryptionScheme!>!

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