Register now for Android Dev Summit 2019!

EncryptedSharedPreferences.PrefValueEncryptionScheme

public static final enum EncryptedSharedPreferences.PrefValueEncryptionScheme
extends Enum<EncryptedSharedPreferences.PrefValueEncryptionScheme>

java.lang.Object
   ↳ java.lang.Enum<androidx.security.crypto.EncryptedSharedPreferences.PrefValueEncryptionScheme>
     ↳ androidx.security.crypto.EncryptedSharedPreferences.PrefValueEncryptionScheme


The encryption scheme to encrypt values.

Summary

Enum values

EncryptedSharedPreferences.PrefValueEncryptionScheme  AES256_GCM

Pref values are encrypted with AES256-GCM. 

Public methods

static EncryptedSharedPreferences.PrefValueEncryptionScheme valueOf(String name)
static final PrefValueEncryptionScheme[] values()

Inherited methods

Enum values

AES256_GCM

public static final 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: AeadKeyTemplates.AES256_GCM

Public methods

valueOf

public static EncryptedSharedPreferences.PrefValueEncryptionScheme valueOf (String name)

Parameters
name String

Returns
EncryptedSharedPreferences.PrefValueEncryptionScheme

values

public static final PrefValueEncryptionScheme[] values ()

Returns
PrefValueEncryptionScheme[]