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 EMPropertyStorage

    Parameters

    identifier

    Should not be nil.

    anError

    If 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!) throws

    Parameters

    identifier

    Should not be nil.

    anError

    If 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

    YES if the property storage exists otherwise returns NO.

  • 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!) throws

    Parameters

    identifier

    Should not be nil.

    anError

    If 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

    YES if destroyed successfully, NO otherwise.