EncryptionKeyManager class

The class EncryptionKeyManager provides a way to enforce security mechanism at the mobile client, basically for the persistence core for Cache and queue of requests.

Syntax

@interface EncryptionKeyManager : NSObject

Members

All members of EncryptionKeyManager, including inherited members.

Methods
Method Description
+ (BOOL) clearEncryptionKeyWithError: (NSError **) error A static method to clear/nullify the key along with the database i.e.
+ (NSString *) encryptionKey This method should not be used by the application developer or the MAF as this is only intended for internal usage.
+ (NSString *) getEncryptionKey: (NSError **) error A static method to provide the unique 128-bit encryption key.
+ (NSString *) resetEncryptionKey A static method to regenerate the key along with the database i.e.
+ (void) setEncryptionKey: (NSString *) key Deprecated.
+ (void) setEncryptionKey: (NSString *) key withError: (NSError **) error A static method to set the unique 128-bit encryption key back to the code to perform the DB operations.

Usage

This class creates and deletes the database with the use of a unique 128-bit encryption key that has to be stored for future operations by either the Mobile Application Framework (MAF) or by the application itself.