EncryptedSharedPreferences.PrefKeyEncryptionScheme


public 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 methods

static EncryptedSharedPreferences.PrefKeyEncryptionScheme

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

static EncryptedSharedPreferences.PrefKeyEncryptionScheme[]

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

Enum Values

AES256_SIV

EncryptedSharedPreferences.PrefKeyEncryptionScheme EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV

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

For more information please see the Tink documentation:

AesSivKeyManager.aes256SivTemplate()

Public methods

valueOf

Added in 1.0.0
public static EncryptedSharedPreferences.PrefKeyEncryptionScheme 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.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
public static EncryptedSharedPreferences.PrefKeyEncryptionScheme[] 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.PrefKeyEncryptionScheme[]

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