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

Remarks

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

Example 1

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