@aws-sdk/client-payment-cryptography-data 3.349.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +294 -0
  3. package/dist-cjs/PaymentCryptographyData.js +33 -0
  4. package/dist-cjs/PaymentCryptographyDataClient.js +41 -0
  5. package/dist-cjs/commands/DecryptDataCommand.js +47 -0
  6. package/dist-cjs/commands/EncryptDataCommand.js +47 -0
  7. package/dist-cjs/commands/GenerateCardValidationDataCommand.js +47 -0
  8. package/dist-cjs/commands/GenerateMacCommand.js +47 -0
  9. package/dist-cjs/commands/GeneratePinDataCommand.js +47 -0
  10. package/dist-cjs/commands/ReEncryptDataCommand.js +47 -0
  11. package/dist-cjs/commands/TranslatePinDataCommand.js +47 -0
  12. package/dist-cjs/commands/VerifyAuthRequestCryptogramCommand.js +47 -0
  13. package/dist-cjs/commands/VerifyCardValidationDataCommand.js +47 -0
  14. package/dist-cjs/commands/VerifyMacCommand.js +47 -0
  15. package/dist-cjs/commands/VerifyPinDataCommand.js +47 -0
  16. package/dist-cjs/commands/index.js +14 -0
  17. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  18. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  19. package/dist-cjs/endpoint/ruleset.js +7 -0
  20. package/dist-cjs/index.js +10 -0
  21. package/dist-cjs/models/PaymentCryptographyDataServiceException.js +12 -0
  22. package/dist-cjs/models/index.js +4 -0
  23. package/dist-cjs/models/models_0.js +526 -0
  24. package/dist-cjs/protocols/Aws_restJson1.js +963 -0
  25. package/dist-cjs/runtimeConfig.browser.js +39 -0
  26. package/dist-cjs/runtimeConfig.js +48 -0
  27. package/dist-cjs/runtimeConfig.native.js +15 -0
  28. package/dist-cjs/runtimeConfig.shared.js +21 -0
  29. package/dist-es/PaymentCryptographyData.js +29 -0
  30. package/dist-es/PaymentCryptographyDataClient.js +37 -0
  31. package/dist-es/commands/DecryptDataCommand.js +43 -0
  32. package/dist-es/commands/EncryptDataCommand.js +43 -0
  33. package/dist-es/commands/GenerateCardValidationDataCommand.js +43 -0
  34. package/dist-es/commands/GenerateMacCommand.js +43 -0
  35. package/dist-es/commands/GeneratePinDataCommand.js +43 -0
  36. package/dist-es/commands/ReEncryptDataCommand.js +43 -0
  37. package/dist-es/commands/TranslatePinDataCommand.js +43 -0
  38. package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +43 -0
  39. package/dist-es/commands/VerifyCardValidationDataCommand.js +43 -0
  40. package/dist-es/commands/VerifyMacCommand.js +43 -0
  41. package/dist-es/commands/VerifyPinDataCommand.js +43 -0
  42. package/dist-es/commands/index.js +11 -0
  43. package/dist-es/endpoint/EndpointParameters.js +8 -0
  44. package/dist-es/endpoint/endpointResolver.js +8 -0
  45. package/dist-es/endpoint/ruleset.js +4 -0
  46. package/dist-es/index.js +5 -0
  47. package/dist-es/models/PaymentCryptographyDataServiceException.js +8 -0
  48. package/dist-es/models/index.js +1 -0
  49. package/dist-es/models/models_0.js +488 -0
  50. package/dist-es/protocols/Aws_restJson1.js +938 -0
  51. package/dist-es/runtimeConfig.browser.js +34 -0
  52. package/dist-es/runtimeConfig.js +43 -0
  53. package/dist-es/runtimeConfig.native.js +11 -0
  54. package/dist-es/runtimeConfig.shared.js +17 -0
  55. package/dist-types/PaymentCryptographyData.d.ts +88 -0
  56. package/dist-types/PaymentCryptographyDataClient.d.ts +174 -0
  57. package/dist-types/commands/DecryptDataCommand.d.ts +133 -0
  58. package/dist-types/commands/EncryptDataCommand.d.ts +138 -0
  59. package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +144 -0
  60. package/dist-types/commands/GenerateMacCommand.d.ts +134 -0
  61. package/dist-types/commands/GeneratePinDataCommand.d.ts +155 -0
  62. package/dist-types/commands/ReEncryptDataCommand.d.ts +150 -0
  63. package/dist-types/commands/TranslatePinDataCommand.d.ts +147 -0
  64. package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +150 -0
  65. package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +156 -0
  66. package/dist-types/commands/VerifyMacCommand.d.ts +137 -0
  67. package/dist-types/commands/VerifyPinDataCommand.d.ts +134 -0
  68. package/dist-types/commands/index.d.ts +11 -0
  69. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  70. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  71. package/dist-types/endpoint/ruleset.d.ts +2 -0
  72. package/dist-types/index.d.ts +11 -0
  73. package/dist-types/models/PaymentCryptographyDataServiceException.d.ts +13 -0
  74. package/dist-types/models/index.d.ts +1 -0
  75. package/dist-types/models/models_0.d.ts +2191 -0
  76. package/dist-types/protocols/Aws_restJson1.d.ts +101 -0
  77. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  78. package/dist-types/runtimeConfig.d.ts +42 -0
  79. package/dist-types/runtimeConfig.native.d.ts +41 -0
  80. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  81. package/dist-types/ts3.4/PaymentCryptographyData.d.ts +194 -0
  82. package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +181 -0
  83. package/dist-types/ts3.4/commands/DecryptDataCommand.d.ts +35 -0
  84. package/dist-types/ts3.4/commands/EncryptDataCommand.d.ts +35 -0
  85. package/dist-types/ts3.4/commands/GenerateCardValidationDataCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +35 -0
  87. package/dist-types/ts3.4/commands/GeneratePinDataCommand.d.ts +38 -0
  88. package/dist-types/ts3.4/commands/ReEncryptDataCommand.d.ts +35 -0
  89. package/dist-types/ts3.4/commands/TranslatePinDataCommand.d.ts +38 -0
  90. package/dist-types/ts3.4/commands/VerifyAuthRequestCryptogramCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/VerifyCardValidationDataCommand.d.ts +42 -0
  92. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +35 -0
  93. package/dist-types/ts3.4/commands/VerifyPinDataCommand.d.ts +35 -0
  94. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  95. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  96. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  97. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  98. package/dist-types/ts3.4/index.d.ts +5 -0
  99. package/dist-types/ts3.4/models/PaymentCryptographyDataServiceException.d.ts +8 -0
  100. package/dist-types/ts3.4/models/index.d.ts +1 -0
  101. package/dist-types/ts3.4/models/models_0.d.ts +1168 -0
  102. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +137 -0
  103. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  104. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  105. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  106. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  107. package/package.json +99 -0
@@ -0,0 +1,144 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GenerateCardValidationDataInput, GenerateCardValidationDataOutput } from "../models/models_0";
5
+ import { PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyDataClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GenerateCardValidationDataCommand}.
14
+ */
15
+ export interface GenerateCardValidationDataCommandInput extends GenerateCardValidationDataInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GenerateCardValidationDataCommand}.
21
+ */
22
+ export interface GenerateCardValidationDataCommandOutput extends GenerateCardValidationDataOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Generates card-related validation data using algorithms such as Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2), or Card Security Codes (CSC). For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/generate-card-data.html">Generate card data</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p>
27
+ * <p>This operation generates a CVV or CSC value that is printed on a payment credit or debit card during card production. The CVV or CSC, PAN (Primary Account Number) and expiration date of the card are required to check its validity during transaction processing. To begin this operation, a CVK (Card Verification Key) encryption key is required. You can use <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a> or <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> to establish a CVK within Amazon Web Services Payment Cryptography. The <code>KeyModesOfUse</code> should be set to <code>Generate</code> and <code>Verify</code> for a CVK encryption key. </p>
28
+ * <p>For information about valid keys for this operation, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-validattributes.html">Understanding key attributes</a> and <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/crypto-ops-validkeys-ops.html">Key types for specific data operations</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>. </p>
29
+ * <p>
30
+ * <b>Cross-account use</b>: This operation can't be used across different Amazon Web Services accounts.</p>
31
+ * <p>
32
+ * <b>Related operations:</b>
33
+ * </p>
34
+ * <ul>
35
+ * <li>
36
+ * <p>
37
+ * <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>
38
+ * </p>
39
+ * </li>
40
+ * <li>
41
+ * <p>
42
+ * <a>VerifyCardValidationData</a>
43
+ * </p>
44
+ * </li>
45
+ * </ul>
46
+ * @example
47
+ * Use a bare-bones client and the command you need to make an API call.
48
+ * ```javascript
49
+ * import { PaymentCryptographyDataClient, GenerateCardValidationDataCommand } from "@aws-sdk/client-payment-cryptography-data"; // ES Modules import
50
+ * // const { PaymentCryptographyDataClient, GenerateCardValidationDataCommand } = require("@aws-sdk/client-payment-cryptography-data"); // CommonJS import
51
+ * const client = new PaymentCryptographyDataClient(config);
52
+ * const input = { // GenerateCardValidationDataInput
53
+ * KeyIdentifier: "STRING_VALUE", // required
54
+ * PrimaryAccountNumber: "STRING_VALUE", // required
55
+ * GenerationAttributes: { // CardGenerationAttributes Union: only one key present
56
+ * AmexCardSecurityCodeVersion1: { // AmexCardSecurityCodeVersion1
57
+ * CardExpiryDate: "STRING_VALUE", // required
58
+ * },
59
+ * AmexCardSecurityCodeVersion2: { // AmexCardSecurityCodeVersion2
60
+ * CardExpiryDate: "STRING_VALUE", // required
61
+ * ServiceCode: "STRING_VALUE", // required
62
+ * },
63
+ * CardVerificationValue1: { // CardVerificationValue1
64
+ * CardExpiryDate: "STRING_VALUE", // required
65
+ * ServiceCode: "STRING_VALUE", // required
66
+ * },
67
+ * CardVerificationValue2: { // CardVerificationValue2
68
+ * CardExpiryDate: "STRING_VALUE", // required
69
+ * },
70
+ * CardHolderVerificationValue: { // CardHolderVerificationValue
71
+ * UnpredictableNumber: "STRING_VALUE", // required
72
+ * PanSequenceNumber: "STRING_VALUE", // required
73
+ * ApplicationTransactionCounter: "STRING_VALUE", // required
74
+ * },
75
+ * DynamicCardVerificationCode: { // DynamicCardVerificationCode
76
+ * UnpredictableNumber: "STRING_VALUE", // required
77
+ * PanSequenceNumber: "STRING_VALUE", // required
78
+ * ApplicationTransactionCounter: "STRING_VALUE", // required
79
+ * TrackData: "STRING_VALUE", // required
80
+ * },
81
+ * DynamicCardVerificationValue: { // DynamicCardVerificationValue
82
+ * PanSequenceNumber: "STRING_VALUE", // required
83
+ * CardExpiryDate: "STRING_VALUE", // required
84
+ * ServiceCode: "STRING_VALUE", // required
85
+ * ApplicationTransactionCounter: "STRING_VALUE", // required
86
+ * },
87
+ * },
88
+ * ValidationDataLength: Number("int"),
89
+ * };
90
+ * const command = new GenerateCardValidationDataCommand(input);
91
+ * const response = await client.send(command);
92
+ * // { // GenerateCardValidationDataOutput
93
+ * // KeyArn: "STRING_VALUE", // required
94
+ * // KeyCheckValue: "STRING_VALUE", // required
95
+ * // ValidationData: "STRING_VALUE", // required
96
+ * // };
97
+ *
98
+ * ```
99
+ *
100
+ * @param GenerateCardValidationDataCommandInput - {@link GenerateCardValidationDataCommandInput}
101
+ * @returns {@link GenerateCardValidationDataCommandOutput}
102
+ * @see {@link GenerateCardValidationDataCommandInput} for command's `input` shape.
103
+ * @see {@link GenerateCardValidationDataCommandOutput} for command's `response` shape.
104
+ * @see {@link PaymentCryptographyDataClientResolvedConfig | config} for PaymentCryptographyDataClient's `config` shape.
105
+ *
106
+ * @throws {@link AccessDeniedException} (client fault)
107
+ * <p>You do not have sufficient access to perform this action.</p>
108
+ *
109
+ * @throws {@link InternalServerException} (server fault)
110
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
111
+ *
112
+ * @throws {@link ResourceNotFoundException} (client fault)
113
+ * <p>The request was denied due to an invalid resource error.</p>
114
+ *
115
+ * @throws {@link ThrottlingException} (client fault)
116
+ * <p>The request was denied due to request throttling.</p>
117
+ *
118
+ * @throws {@link ValidationException} (client fault)
119
+ * <p>The request was denied due to an invalid request error.</p>
120
+ *
121
+ * @throws {@link PaymentCryptographyDataServiceException}
122
+ * <p>Base exception class for all service exceptions from PaymentCryptographyData service.</p>
123
+ *
124
+ */
125
+ export declare class GenerateCardValidationDataCommand extends $Command<GenerateCardValidationDataCommandInput, GenerateCardValidationDataCommandOutput, PaymentCryptographyDataClientResolvedConfig> {
126
+ readonly input: GenerateCardValidationDataCommandInput;
127
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
128
+ /**
129
+ * @public
130
+ */
131
+ constructor(input: GenerateCardValidationDataCommandInput);
132
+ /**
133
+ * @internal
134
+ */
135
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GenerateCardValidationDataCommandInput, GenerateCardValidationDataCommandOutput>;
136
+ /**
137
+ * @internal
138
+ */
139
+ private serialize;
140
+ /**
141
+ * @internal
142
+ */
143
+ private deserialize;
144
+ }
@@ -0,0 +1,134 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GenerateMacInput, GenerateMacOutput } from "../models/models_0";
5
+ import { PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyDataClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GenerateMacCommand}.
14
+ */
15
+ export interface GenerateMacCommandInput extends GenerateMacInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GenerateMacCommand}.
21
+ */
22
+ export interface GenerateMacCommandOutput extends GenerateMacOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Generates a Message Authentication Code (MAC) cryptogram within Amazon Web Services Payment Cryptography. </p>
27
+ * <p>You can use this operation when keys won't be shared but mutual data is present on both ends for validation. In this case, known data values are used to generate a MAC on both ends for comparision without sending or receiving data in ciphertext or plaintext. You can use this operation to generate a DUPKT, HMAC or EMV MAC by setting generation attributes and algorithm to the associated values. The MAC generation encryption key must have valid values for <code>KeyUsage</code> such as <code>TR31_M7_HMAC_KEY</code> for HMAC generation, and they key must have <code>KeyModesOfUse</code> set to <code>Generate</code> and <code>Verify</code>.</p>
28
+ * <p>For information about valid keys for this operation, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-validattributes.html">Understanding key attributes</a> and <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/crypto-ops-validkeys-ops.html">Key types for specific data operations</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>. </p>
29
+ * <p>
30
+ * <b>Cross-account use</b>: This operation can't be used across different Amazon Web Services accounts.</p>
31
+ * <p>
32
+ * <b>Related operations:</b>
33
+ * </p>
34
+ * <ul>
35
+ * <li>
36
+ * <p>
37
+ * <a>VerifyMac</a>
38
+ * </p>
39
+ * </li>
40
+ * </ul>
41
+ * @example
42
+ * Use a bare-bones client and the command you need to make an API call.
43
+ * ```javascript
44
+ * import { PaymentCryptographyDataClient, GenerateMacCommand } from "@aws-sdk/client-payment-cryptography-data"; // ES Modules import
45
+ * // const { PaymentCryptographyDataClient, GenerateMacCommand } = require("@aws-sdk/client-payment-cryptography-data"); // CommonJS import
46
+ * const client = new PaymentCryptographyDataClient(config);
47
+ * const input = { // GenerateMacInput
48
+ * KeyIdentifier: "STRING_VALUE", // required
49
+ * MessageData: "STRING_VALUE", // required
50
+ * GenerationAttributes: { // MacAttributes Union: only one key present
51
+ * Algorithm: "STRING_VALUE",
52
+ * EmvMac: { // MacAlgorithmEmv
53
+ * MajorKeyDerivationMode: "STRING_VALUE", // required
54
+ * PrimaryAccountNumber: "STRING_VALUE", // required
55
+ * PanSequenceNumber: "STRING_VALUE", // required
56
+ * SessionKeyDerivationMode: "STRING_VALUE", // required
57
+ * SessionKeyDerivationValue: { // SessionKeyDerivationValue Union: only one key present
58
+ * ApplicationCryptogram: "STRING_VALUE",
59
+ * ApplicationTransactionCounter: "STRING_VALUE",
60
+ * },
61
+ * },
62
+ * DukptIso9797Algorithm1: { // MacAlgorithmDukpt
63
+ * KeySerialNumber: "STRING_VALUE", // required
64
+ * DukptKeyVariant: "STRING_VALUE", // required
65
+ * DukptDerivationType: "STRING_VALUE",
66
+ * },
67
+ * DukptIso9797Algorithm3: {
68
+ * KeySerialNumber: "STRING_VALUE", // required
69
+ * DukptKeyVariant: "STRING_VALUE", // required
70
+ * DukptDerivationType: "STRING_VALUE",
71
+ * },
72
+ * DukptCmac: {
73
+ * KeySerialNumber: "STRING_VALUE", // required
74
+ * DukptKeyVariant: "STRING_VALUE", // required
75
+ * DukptDerivationType: "STRING_VALUE",
76
+ * },
77
+ * },
78
+ * MacLength: Number("int"),
79
+ * };
80
+ * const command = new GenerateMacCommand(input);
81
+ * const response = await client.send(command);
82
+ * // { // GenerateMacOutput
83
+ * // KeyArn: "STRING_VALUE", // required
84
+ * // KeyCheckValue: "STRING_VALUE", // required
85
+ * // Mac: "STRING_VALUE", // required
86
+ * // };
87
+ *
88
+ * ```
89
+ *
90
+ * @param GenerateMacCommandInput - {@link GenerateMacCommandInput}
91
+ * @returns {@link GenerateMacCommandOutput}
92
+ * @see {@link GenerateMacCommandInput} for command's `input` shape.
93
+ * @see {@link GenerateMacCommandOutput} for command's `response` shape.
94
+ * @see {@link PaymentCryptographyDataClientResolvedConfig | config} for PaymentCryptographyDataClient's `config` shape.
95
+ *
96
+ * @throws {@link AccessDeniedException} (client fault)
97
+ * <p>You do not have sufficient access to perform this action.</p>
98
+ *
99
+ * @throws {@link InternalServerException} (server fault)
100
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
101
+ *
102
+ * @throws {@link ResourceNotFoundException} (client fault)
103
+ * <p>The request was denied due to an invalid resource error.</p>
104
+ *
105
+ * @throws {@link ThrottlingException} (client fault)
106
+ * <p>The request was denied due to request throttling.</p>
107
+ *
108
+ * @throws {@link ValidationException} (client fault)
109
+ * <p>The request was denied due to an invalid request error.</p>
110
+ *
111
+ * @throws {@link PaymentCryptographyDataServiceException}
112
+ * <p>Base exception class for all service exceptions from PaymentCryptographyData service.</p>
113
+ *
114
+ */
115
+ export declare class GenerateMacCommand extends $Command<GenerateMacCommandInput, GenerateMacCommandOutput, PaymentCryptographyDataClientResolvedConfig> {
116
+ readonly input: GenerateMacCommandInput;
117
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
118
+ /**
119
+ * @public
120
+ */
121
+ constructor(input: GenerateMacCommandInput);
122
+ /**
123
+ * @internal
124
+ */
125
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GenerateMacCommandInput, GenerateMacCommandOutput>;
126
+ /**
127
+ * @internal
128
+ */
129
+ private serialize;
130
+ /**
131
+ * @internal
132
+ */
133
+ private deserialize;
134
+ }
@@ -0,0 +1,155 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GeneratePinDataInput, GeneratePinDataOutput } from "../models/models_0";
5
+ import { PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyDataClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GeneratePinDataCommand}.
14
+ */
15
+ export interface GeneratePinDataCommandInput extends GeneratePinDataInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GeneratePinDataCommand}.
21
+ */
22
+ export interface GeneratePinDataCommandOutput extends GeneratePinDataOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Generates pin-related data such as PIN, PIN Verification Value (PVV), PIN Block, and PIN Offset during new card issuance or reissuance. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/generate-pin-data.html">Generate PIN data</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p>
27
+ * <p>PIN data is never transmitted in clear to or from Amazon Web Services Payment Cryptography. This operation generates PIN, PVV, or PIN Offset and then encrypts it using Pin Encryption Key (PEK) to create an <code>EncryptedPinBlock</code> for transmission from Amazon Web Services Payment Cryptography. This operation uses a separate Pin Verification Key (PVK) for VISA PVV generation. </p>
28
+ * <p>For information about valid keys for this operation, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-validattributes.html">Understanding key attributes</a> and <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/crypto-ops-validkeys-ops.html">Key types for specific data operations</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p>
29
+ * <p>
30
+ * <b>Cross-account use</b>: This operation can't be used across different Amazon Web Services accounts.</p>
31
+ * <p>
32
+ * <b>Related operations:</b>
33
+ * </p>
34
+ * <ul>
35
+ * <li>
36
+ * <p>
37
+ * <a>GenerateCardValidationData</a>
38
+ * </p>
39
+ * </li>
40
+ * <li>
41
+ * <p>
42
+ * <a>TranslatePinData</a>
43
+ * </p>
44
+ * </li>
45
+ * <li>
46
+ * <p>
47
+ * <a>VerifyPinData</a>
48
+ * </p>
49
+ * </li>
50
+ * </ul>
51
+ * @example
52
+ * Use a bare-bones client and the command you need to make an API call.
53
+ * ```javascript
54
+ * import { PaymentCryptographyDataClient, GeneratePinDataCommand } from "@aws-sdk/client-payment-cryptography-data"; // ES Modules import
55
+ * // const { PaymentCryptographyDataClient, GeneratePinDataCommand } = require("@aws-sdk/client-payment-cryptography-data"); // CommonJS import
56
+ * const client = new PaymentCryptographyDataClient(config);
57
+ * const input = { // GeneratePinDataInput
58
+ * GenerationKeyIdentifier: "STRING_VALUE", // required
59
+ * EncryptionKeyIdentifier: "STRING_VALUE", // required
60
+ * GenerationAttributes: { // PinGenerationAttributes Union: only one key present
61
+ * VisaPin: { // VisaPin
62
+ * PinVerificationKeyIndex: Number("int"), // required
63
+ * },
64
+ * VisaPinVerificationValue: { // VisaPinVerificationValue
65
+ * EncryptedPinBlock: "STRING_VALUE", // required
66
+ * PinVerificationKeyIndex: Number("int"), // required
67
+ * },
68
+ * Ibm3624PinOffset: { // Ibm3624PinOffset
69
+ * EncryptedPinBlock: "STRING_VALUE", // required
70
+ * DecimalizationTable: "STRING_VALUE", // required
71
+ * PinValidationDataPadCharacter: "STRING_VALUE", // required
72
+ * PinValidationData: "STRING_VALUE", // required
73
+ * },
74
+ * Ibm3624NaturalPin: { // Ibm3624NaturalPin
75
+ * DecimalizationTable: "STRING_VALUE", // required
76
+ * PinValidationDataPadCharacter: "STRING_VALUE", // required
77
+ * PinValidationData: "STRING_VALUE", // required
78
+ * },
79
+ * Ibm3624RandomPin: { // Ibm3624RandomPin
80
+ * DecimalizationTable: "STRING_VALUE", // required
81
+ * PinValidationDataPadCharacter: "STRING_VALUE", // required
82
+ * PinValidationData: "STRING_VALUE", // required
83
+ * },
84
+ * Ibm3624PinFromOffset: { // Ibm3624PinFromOffset
85
+ * DecimalizationTable: "STRING_VALUE", // required
86
+ * PinValidationDataPadCharacter: "STRING_VALUE", // required
87
+ * PinValidationData: "STRING_VALUE", // required
88
+ * PinOffset: "STRING_VALUE", // required
89
+ * },
90
+ * },
91
+ * PinDataLength: Number("int"),
92
+ * PrimaryAccountNumber: "STRING_VALUE", // required
93
+ * PinBlockFormat: "STRING_VALUE", // required
94
+ * };
95
+ * const command = new GeneratePinDataCommand(input);
96
+ * const response = await client.send(command);
97
+ * // { // GeneratePinDataOutput
98
+ * // GenerationKeyArn: "STRING_VALUE", // required
99
+ * // GenerationKeyCheckValue: "STRING_VALUE", // required
100
+ * // EncryptionKeyArn: "STRING_VALUE", // required
101
+ * // EncryptionKeyCheckValue: "STRING_VALUE", // required
102
+ * // EncryptedPinBlock: "STRING_VALUE", // required
103
+ * // PinData: { // PinData Union: only one key present
104
+ * // PinOffset: "STRING_VALUE",
105
+ * // VerificationValue: "STRING_VALUE",
106
+ * // },
107
+ * // };
108
+ *
109
+ * ```
110
+ *
111
+ * @param GeneratePinDataCommandInput - {@link GeneratePinDataCommandInput}
112
+ * @returns {@link GeneratePinDataCommandOutput}
113
+ * @see {@link GeneratePinDataCommandInput} for command's `input` shape.
114
+ * @see {@link GeneratePinDataCommandOutput} for command's `response` shape.
115
+ * @see {@link PaymentCryptographyDataClientResolvedConfig | config} for PaymentCryptographyDataClient's `config` shape.
116
+ *
117
+ * @throws {@link AccessDeniedException} (client fault)
118
+ * <p>You do not have sufficient access to perform this action.</p>
119
+ *
120
+ * @throws {@link InternalServerException} (server fault)
121
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
122
+ *
123
+ * @throws {@link ResourceNotFoundException} (client fault)
124
+ * <p>The request was denied due to an invalid resource error.</p>
125
+ *
126
+ * @throws {@link ThrottlingException} (client fault)
127
+ * <p>The request was denied due to request throttling.</p>
128
+ *
129
+ * @throws {@link ValidationException} (client fault)
130
+ * <p>The request was denied due to an invalid request error.</p>
131
+ *
132
+ * @throws {@link PaymentCryptographyDataServiceException}
133
+ * <p>Base exception class for all service exceptions from PaymentCryptographyData service.</p>
134
+ *
135
+ */
136
+ export declare class GeneratePinDataCommand extends $Command<GeneratePinDataCommandInput, GeneratePinDataCommandOutput, PaymentCryptographyDataClientResolvedConfig> {
137
+ readonly input: GeneratePinDataCommandInput;
138
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
139
+ /**
140
+ * @public
141
+ */
142
+ constructor(input: GeneratePinDataCommandInput);
143
+ /**
144
+ * @internal
145
+ */
146
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GeneratePinDataCommandInput, GeneratePinDataCommandOutput>;
147
+ /**
148
+ * @internal
149
+ */
150
+ private serialize;
151
+ /**
152
+ * @internal
153
+ */
154
+ private deserialize;
155
+ }
@@ -0,0 +1,150 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ReEncryptDataInput, ReEncryptDataOutput } from "../models/models_0";
5
+ import { PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyDataClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ReEncryptDataCommand}.
14
+ */
15
+ export interface ReEncryptDataCommandInput extends ReEncryptDataInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ReEncryptDataCommand}.
21
+ */
22
+ export interface ReEncryptDataCommandOutput extends ReEncryptDataOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Re-encrypt ciphertext using DUKPT, Symmetric and Asymmetric Data Encryption Keys. </p>
27
+ * <p>You can either generate an encryption key within Amazon Web Services Payment Cryptography by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a> or import your own encryption key by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>. The <code>KeyArn</code> for use with this operation must be in a compatible key state with <code>KeyModesOfUse</code> set to <code>Encrypt</code>. In asymmetric encryption, ciphertext is encrypted using public component (imported by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>) of the asymmetric key pair created outside of Amazon Web Services Payment Cryptography. </p>
28
+ * <p>For symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports <code>TDES</code> and <code>AES</code> algorithms. For asymmetric encryption, Amazon Web Services Payment Cryptography supports <code>RSA</code>. To encrypt using DUKPT, a DUKPT key must already exist within your account with <code>KeyModesOfUse</code> set to <code>DeriveKey</code> or a new DUKPT can be generated by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a>.</p>
29
+ * <p>For information about valid keys for this operation, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-validattributes.html">Understanding key attributes</a> and <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/crypto-ops-validkeys-ops.html">Key types for specific data operations</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>. </p>
30
+ * <p>
31
+ * <b>Cross-account use</b>: This operation can't be used across different Amazon Web Services accounts.</p>
32
+ * <p>
33
+ * <b>Related operations:</b>
34
+ * </p>
35
+ * <ul>
36
+ * <li>
37
+ * <p>
38
+ * <a>DecryptData</a>
39
+ * </p>
40
+ * </li>
41
+ * <li>
42
+ * <p>
43
+ * <a>EncryptData</a>
44
+ * </p>
45
+ * </li>
46
+ * <li>
47
+ * <p>
48
+ * <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetPublicKeyCertificate.html">GetPublicCertificate</a>
49
+ * </p>
50
+ * </li>
51
+ * <li>
52
+ * <p>
53
+ * <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>
54
+ * </p>
55
+ * </li>
56
+ * </ul>
57
+ * @example
58
+ * Use a bare-bones client and the command you need to make an API call.
59
+ * ```javascript
60
+ * import { PaymentCryptographyDataClient, ReEncryptDataCommand } from "@aws-sdk/client-payment-cryptography-data"; // ES Modules import
61
+ * // const { PaymentCryptographyDataClient, ReEncryptDataCommand } = require("@aws-sdk/client-payment-cryptography-data"); // CommonJS import
62
+ * const client = new PaymentCryptographyDataClient(config);
63
+ * const input = { // ReEncryptDataInput
64
+ * IncomingKeyIdentifier: "STRING_VALUE", // required
65
+ * OutgoingKeyIdentifier: "STRING_VALUE", // required
66
+ * CipherText: "STRING_VALUE", // required
67
+ * IncomingEncryptionAttributes: { // ReEncryptionAttributes Union: only one key present
68
+ * Symmetric: { // SymmetricEncryptionAttributes
69
+ * Mode: "STRING_VALUE", // required
70
+ * InitializationVector: "STRING_VALUE",
71
+ * PaddingType: "STRING_VALUE",
72
+ * },
73
+ * Dukpt: { // DukptEncryptionAttributes
74
+ * KeySerialNumber: "STRING_VALUE", // required
75
+ * Mode: "STRING_VALUE",
76
+ * DukptKeyDerivationType: "STRING_VALUE",
77
+ * DukptKeyVariant: "STRING_VALUE",
78
+ * InitializationVector: "STRING_VALUE",
79
+ * },
80
+ * },
81
+ * OutgoingEncryptionAttributes: {// Union: only one key present
82
+ * Symmetric: {
83
+ * Mode: "STRING_VALUE", // required
84
+ * InitializationVector: "STRING_VALUE",
85
+ * PaddingType: "STRING_VALUE",
86
+ * },
87
+ * Dukpt: {
88
+ * KeySerialNumber: "STRING_VALUE", // required
89
+ * Mode: "STRING_VALUE",
90
+ * DukptKeyDerivationType: "STRING_VALUE",
91
+ * DukptKeyVariant: "STRING_VALUE",
92
+ * InitializationVector: "STRING_VALUE",
93
+ * },
94
+ * },
95
+ * };
96
+ * const command = new ReEncryptDataCommand(input);
97
+ * const response = await client.send(command);
98
+ * // { // ReEncryptDataOutput
99
+ * // KeyArn: "STRING_VALUE", // required
100
+ * // KeyCheckValue: "STRING_VALUE", // required
101
+ * // CipherText: "STRING_VALUE", // required
102
+ * // };
103
+ *
104
+ * ```
105
+ *
106
+ * @param ReEncryptDataCommandInput - {@link ReEncryptDataCommandInput}
107
+ * @returns {@link ReEncryptDataCommandOutput}
108
+ * @see {@link ReEncryptDataCommandInput} for command's `input` shape.
109
+ * @see {@link ReEncryptDataCommandOutput} for command's `response` shape.
110
+ * @see {@link PaymentCryptographyDataClientResolvedConfig | config} for PaymentCryptographyDataClient's `config` shape.
111
+ *
112
+ * @throws {@link AccessDeniedException} (client fault)
113
+ * <p>You do not have sufficient access to perform this action.</p>
114
+ *
115
+ * @throws {@link InternalServerException} (server fault)
116
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
117
+ *
118
+ * @throws {@link ResourceNotFoundException} (client fault)
119
+ * <p>The request was denied due to an invalid resource error.</p>
120
+ *
121
+ * @throws {@link ThrottlingException} (client fault)
122
+ * <p>The request was denied due to request throttling.</p>
123
+ *
124
+ * @throws {@link ValidationException} (client fault)
125
+ * <p>The request was denied due to an invalid request error.</p>
126
+ *
127
+ * @throws {@link PaymentCryptographyDataServiceException}
128
+ * <p>Base exception class for all service exceptions from PaymentCryptographyData service.</p>
129
+ *
130
+ */
131
+ export declare class ReEncryptDataCommand extends $Command<ReEncryptDataCommandInput, ReEncryptDataCommandOutput, PaymentCryptographyDataClientResolvedConfig> {
132
+ readonly input: ReEncryptDataCommandInput;
133
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
134
+ /**
135
+ * @public
136
+ */
137
+ constructor(input: ReEncryptDataCommandInput);
138
+ /**
139
+ * @internal
140
+ */
141
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ReEncryptDataCommandInput, ReEncryptDataCommandOutput>;
142
+ /**
143
+ * @internal
144
+ */
145
+ private serialize;
146
+ /**
147
+ * @internal
148
+ */
149
+ private deserialize;
150
+ }