EMSecureContainer

Objective-C

@protocol EMSecureContainer <NSObject, NSCopying>

Swift

protocol EMSecureContainer : NSCopying, NSObjectProtocol

A protocol representing a secure container object in memory.

  • Wipes internal state of a secure container object.

    Declaration

    Objective-C

    - (void)wipe;

    Swift

    func wipe()
  • Returns a copy of the secure container object.

    Declaration

    Objective-C

    - (id)copy;

    Swift

    func copy() -> Any!

    Return Value

    The copy of the secure container object.

  • Compares the receiver to the other secure container object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)anotherData;

    Swift

    func isEqual(_ anotherData: Any!) -> Bool

    Parameters

    anotherData

    The object to be compared.

    Return Value

    YES if two objects are equivalent, NO otherwise.

  • Calculates the hash code of this secure container object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Swift

    func hash() -> UInt

    Return Value

    The hash code.