EMSecureStorageManager
Objective-C
@protocol EMSecureStorageManager <NSObject>
Swift
protocol EMSecureStorageManager : NSObjectProtocol
The Secure Storage Manager is a high level interface that allows to manage Property Storage objects for storing sensitive data.
Since
3.1-
Gets Property Storage with the given identifier, creates it if it does not exist.
Since
3.1
Declaration
Objective-C
- (id<EMPropertyStorage>)propertyStorageWithIdentifier:(NSString *)identifier error:(NSError **)anError;Swift
func propertyStorage(withIdentifier identifier: String!) throws -> any EMPropertyStorageParameters
identifierShould not be
nil.anErrorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in
NULL.Return Value
The property storage.
-
Check if the property storage of given identifier exists.
Since
3.1
Declaration
Objective-C
- (BOOL)hasPropertyStorageWithIdentifier:(NSString *)identifier error:(NSError **)anError;Swift
func hasPropertyStorage(withIdentifier identifier: String!) throwsParameters
identifierShould not be
nil.anErrorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in
NULL.Return Value
YESif the property storage exists otherwise returnsNO. -
Destroys a storage and all data in the storage will be wiped.
Since
3.1
Declaration
Objective-C
- (BOOL)destroyPropertyStorageWithIdentifier:(NSString *)identifier error:(NSError **)anError;Swift
func destroyPropertyStorage(withIdentifier identifier: String!) throwsParameters
identifierShould not be
nil.anErrorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in
NULL.Return Value
YESif destroyed successfully,NOotherwise.
EMSecureStorageManager Protocol Reference