setEncryptionKey(String, Context) method

Set the Encryption key,Expected to be set to null before Application goes to background.

Syntax

public static void setEncryptionKey ( String Key , Context context ) throws PersistenceException

Parameters

Example 1

EncryptionKeyManager.setEncryptionKey("encryptionkey",getApplicationContext());

Usage

And must be set with Key which is generated using getEncryptionkey on Application.