AuthenticationRequestParameters.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. //
  2. // AuthenticationRequestParameters.h
  3. // CardinalEMVCoSDK
  4. //
  5. // Copyright © 2018 Cardinal Commerce. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. /**
  9. * The AuthenticationRequestParameters class holds transaction data that the App passes to the 3DS Server for creating the AReq.
  10. */
  11. @interface AuthenticationRequestParameters : NSObject
  12. - (id _Nonnull ) initWithSDKTransactionId: (NSString *_Nonnull) sdkTransactionId
  13. deviceData: (NSString *_Nonnull) deviceData
  14. sdkEphemeralPublicKey: (NSString *_Nonnull) sdkEphemeralPublicKey
  15. sdkAppID: (NSString *_Nonnull) sdkAppID
  16. sdkReferenceNumber: (NSString *_Nonnull) sdkReferenceNumber
  17. messageVersion: (NSString *_Nonnull) messageVersion;
  18. /**
  19. * @property sdkTransactionID SDK Transaction ID.
  20. */
  21. @property (nonnull, nonatomic, strong, readonly) NSString* sdkTransactionID;
  22. /**
  23. * @property deviceData Device data collected by the SDK.
  24. */
  25. @property (nullable, nonatomic, strong, readonly) NSString* deviceData;
  26. /**
  27. * @property sdkEphemeralPublicKey SDK Ephemeral Public Key (Qc).
  28. */
  29. @property (nonnull, nonatomic, strong, readonly) NSString* sdkEphemeralPublicKey;
  30. /**
  31. * @property sdkAppID SDK App ID.
  32. */
  33. @property (nonnull, nonatomic, strong, readonly) NSString* sdkAppID;
  34. /**
  35. * @property sdkReferenceNumber SDK Reference Number.
  36. */
  37. @property (nonnull, nonatomic, strong, readonly) NSString* sdkReferenceNumber;
  38. /**
  39. * @property messageVersion Protocol version that is supported by the SDK and used for the transaction.
  40. */
  41. @property (nonnull, nonatomic, strong, readonly) NSString* messageVersion;
  42. /**
  43. * The getDeviceData method returns the encrypted device data as a string.
  44. * @return NSString
  45. */
  46. - (NSString *_Nullable) getDeviceData;
  47. /**
  48. * The getSDKTransactionID method returns the SDK Transaction ID.
  49. * @return NSString
  50. */
  51. - (NSString *_Nonnull) getSDKTransactionID;
  52. /**
  53. * The getSDKAppID method returns the SDK App ID.
  54. * @return NSString
  55. */
  56. - (NSString *_Nonnull) getSDKAppID;
  57. /**
  58. * The getSDKReferenceNumber method returns the SDK Reference Number.
  59. * @return NSString
  60. */
  61. - (NSString *_Nonnull) getSDKReferenceNumber;
  62. /**
  63. * The getSDKEphemeralPublicKey method returns the SDK Ephemeral Public Key.
  64. * @return NSString
  65. */
  66. - (NSString *_Nonnull) getSDKEphemeralPublicKey;
  67. /**
  68. * The getMessageVersion method returns the protocol version that is used for the transaction.
  69. * @return NSString
  70. */
  71. - (NSString *_Nonnull) getMessageVersion;
  72. + (instancetype _Nonnull )new NS_UNAVAILABLE;
  73. - (instancetype _Nonnull )init NS_UNAVAILABLE;
  74. @end