EMDsCapParameters

Objective-C


@interface EMDsCapParameters : NSObject

Swift

class EMDsCapParameters : NSObject

Represents a DS mapping to standard CAP parameters such that verification may be done using Gemalto DSIP and any standard CAP authentication server.

  • Creates a CAP verification parameter object.

    Declaration

    Objective-C

    - (id)initWithCapMode:(EMDsCapMode)capMode
                challenge:(id<EMSecureString>)challenge
                   amount:(id<EMSecureString>)amount
             currencyCode:(NSString *)currencyCode
               dataToSign:(NSArray *)dataToSign;

    Swift

    init!(capMode: EMDsCapMode, challenge: (any EMSecureString)!, amount: (any EMSecureString)!, currencyCode: String!, dataToSign: [Any]!)

    Parameters

    capMode

    The CAP mode to use.

    challenge

    The merchant challenge.

    amount

    The amount.

    currencyCode

    The currency code of the transaction.

    dataToSign

    The data to sign.

    Return Value

    A CAP verification parameter object.

  • Returns the DS CAP mode. See enum EMDsCapMode.

    Declaration

    Objective-C

    @property (nonatomic, readonly) EMDsCapMode capMode;

    Swift

    var capMode: EMDsCapMode { get }

    Return Value

    The DS CAP mode.

  • Returns the challenge.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<EMSecureString> challenge;

    Swift

    var challenge: (any EMSecureString)! { get }

    Return Value

    The challenge.

  • Returns the amount.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<EMSecureString> amount;

    Swift

    var amount: (any EMSecureString)! { get }

    Return Value

    The amount.

  • Returns the currency code.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *currencyCode;

    Swift

    var currencyCode: String! { get }

    Return Value

    The currency code.

  • Returns an array of data to be signed. Each item in the array is an instance of EMSecureString.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSArray *dataToSign;

    Swift

    var dataToSign: [Any]! { get }

    Return Value

    The signing data.