Inherits from AGMemoryStorage : AGBaseStorage : NSObject
Declared in AGEncryptedMemoryStorage.h
AGEncryptedMemoryStorage.m

Overview

An internal AGStore implementation that uses an encrypted “in-memory” storage.

IMPORTANT: Users are not required to instantiate this class directly, instead an instance of this class is returned automatically when an DataStore with default configuration is constructed or with the type config option set to “ENCRYPTED_MEMORY”. See AGDataManager and AGStore class documentation for more information.

Instance Methods

dump

utility method to dump the contents of the encrypted storage. The returned format is Property List compliant and can be saved to a permanent storage for later retrieval.

- (NSData *)dump

Return Value

an NSData object with the contents of the encrypted storage.

Discussion

utility method to dump the contents of the encrypted storage. The returned format is Property List compliant and can be saved to a permanent storage for later retrieval.

Declared In

AGEncryptedMemoryStorage.h

save:forKey:

Utility method to save an NSData object on the encrypted store. The object is required to be ‘Property List compliant’ and ‘encrypted’ with the key that this EncryptedMemory storage was initialized in.

- (void)save:(NSData *)encryptedData forKey:(NSString *)key

Parameters

key

The key under which this encrypted object will bound to.

value

An encrypted object to be saved.

Discussion

Utility method to save an NSData object on the encrypted store. The object is required to be ‘Property List compliant’ and ‘encrypted’ with the key that this EncryptedMemory storage was initialized in.

Declared In

AGEncryptedMemoryStorage.h