This API reset the encryption key along with clearing all the cache and Queued offline requests and returns the new generated unique 128 bit key.
Syntax
public static
String
resetEncryptionKey
(
Context
context
) throws PersistenceException
Parameters
-
Context: –
Application Context.
Returns
key: returns the Encryption key,Generates unique 128 bit encryption.
Example 1
EncryptionKeyManager.resetEncryptionKey(getApplicaitonContex());