Register now for Android Dev Summit 2019!

EncryptedSharedPreferences.PrefKeyEncryptionScheme

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

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


The encryption scheme to encrypt keys.

Summary

Enum values

EncryptedSharedPreferences.PrefKeyEncryptionScheme  AES256_SIV

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

Public methods

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

Inherited methods

Enum values

AES256_SIV

public static final EncryptedSharedPreferences.PrefKeyEncryptionScheme AES256_SIV

Pref keys are encrypted deterministically with AES256-SIV-CMAC (RFC 5297). For more information please see the Tink documentation: DeterministicAeadKeyTemplates.AES256_SIV

Public methods

valueOf

public static EncryptedSharedPreferences.PrefKeyEncryptionScheme valueOf (String name)

Parameters
name String

Returns
EncryptedSharedPreferences.PrefKeyEncryptionScheme

values

public static final PrefKeyEncryptionScheme[] values ()

Returns
PrefKeyEncryptionScheme[]