EMSecureInputEncryptionConfig

Objective-C

@interface EMSecureInputEncryptionConfig : NSObject

@property (nonatomic, assign) EMSecureInputEncryptionMode encryptionMode;
@property (nonatomic, strong) NSData *publicKey;
@property (nonatomic, strong) NSData *userData;

#pragma mark Constructors

- (instancetype)init NS_UNAVAILABLE;

/**
 Constructor of Encryption configuration object. This is used to build the encrypted secure keypad
 
 @param encryptionMode Enum value for the mode of encryption
 @param publicKey      The RSA public key to be used for keys encryption.
 @param userData       A custom user data to be encrypted with public key. It can't be null and maximum size depends on key size. See Programmer's Guide for details about maximum size.
 
 @return New instance of a EMSecureInputEncryptionConfig.
 - Since: 6.2
 */
- (instancetype)initWith:(EMSecureInputEncryptionMode)encryptionMode publicKey:(NSData*)publicKey userData:(NSData*) userData NS_DESIGNATED_INITIALIZER;

@end

Swift

class EMSecureInputEncryptionConfig : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) EMSecureInputEncryptionMode encryptionMode

    Swift

    var encryptionMode: EMSecureInputEncryptionMode { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *publicKey

    Swift

    var publicKey: Data { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *userData

    Swift

    var userData: Data { get set }

Constructors

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Constructor of Encryption configuration object. This is used to build the encrypted secure keypad

    Since

    6.2

    Declaration

    Objective-C

    - (nonnull instancetype)initWith:(EMSecureInputEncryptionMode)encryptionMode
                           publicKey:(nonnull NSData *)publicKey
                            userData:(nonnull NSData *)userData;

    Swift

    init(_ encryptionMode: EMSecureInputEncryptionMode, publicKey: Data, userData: Data)

    Parameters

    encryptionMode

    Enum value for the mode of encryption

    publicKey

    The RSA public key to be used for keys encryption.

    userData

    A custom user data to be encrypted with public key. It can’t be null and maximum size depends on key size. See Programmer’s Guide for details about maximum size.

    Return Value

    New instance of a EMSecureInputEncryptionConfig.