@aws-sdk/client-payment-cryptography-data 3.1077.0 → 3.1079.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.
- package/dist-cjs/index.js +23 -153
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/DecryptDataCommand.js +2 -14
- package/dist-es/commands/EncryptDataCommand.js +2 -14
- package/dist-es/commands/GenerateAs2805KekValidationCommand.js +2 -14
- package/dist-es/commands/GenerateAuthRequestCryptogramCommand.js +2 -14
- package/dist-es/commands/GenerateCardValidationDataCommand.js +2 -14
- package/dist-es/commands/GenerateMacCommand.js +2 -14
- package/dist-es/commands/GenerateMacEmvPinChangeCommand.js +2 -14
- package/dist-es/commands/GeneratePinDataCommand.js +2 -14
- package/dist-es/commands/ReEncryptDataCommand.js +2 -14
- package/dist-es/commands/TranslateKeyMaterialCommand.js +2 -14
- package/dist-es/commands/TranslatePinDataCommand.js +2 -14
- package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +2 -14
- package/dist-es/commands/VerifyCardValidationDataCommand.js +2 -14
- package/dist-es/commands/VerifyMacCommand.js +2 -14
- package/dist-es/commands/VerifyPinDataCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/DecryptDataCommand.d.ts +3 -8
- package/dist-types/commands/EncryptDataCommand.d.ts +3 -8
- package/dist-types/commands/GenerateAs2805KekValidationCommand.d.ts +3 -8
- package/dist-types/commands/GenerateAuthRequestCryptogramCommand.d.ts +3 -8
- package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +3 -8
- package/dist-types/commands/GenerateMacCommand.d.ts +3 -8
- package/dist-types/commands/GenerateMacEmvPinChangeCommand.d.ts +3 -8
- package/dist-types/commands/GeneratePinDataCommand.d.ts +3 -8
- package/dist-types/commands/ReEncryptDataCommand.d.ts +3 -8
- package/dist-types/commands/TranslateKeyMaterialCommand.d.ts +3 -8
- package/dist-types/commands/TranslatePinDataCommand.d.ts +3 -8
- package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +3 -8
- package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +3 -8
- package/dist-types/commands/VerifyMacCommand.d.ts +3 -8
- package/dist-types/commands/VerifyPinDataCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/DecryptDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/EncryptDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateAs2805KekValidationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateAuthRequestCryptogramCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateCardValidationDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateMacEmvPinChangeCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GeneratePinDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ReEncryptDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/TranslateKeyMaterialCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/TranslatePinDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/VerifyAuthRequestCryptogramCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/VerifyCardValidationDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/VerifyPinDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -68,7 +69,7 @@ const commonParams = {
|
|
|
68
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
69
70
|
};
|
|
70
71
|
|
|
71
|
-
var version = "3.
|
|
72
|
+
var version = "3.1078.0";
|
|
72
73
|
var packageInfo = {
|
|
73
74
|
version: version};
|
|
74
75
|
|
|
@@ -1281,184 +1282,53 @@ class PaymentCryptographyDataClient extends Client {
|
|
|
1281
1282
|
}
|
|
1282
1283
|
}
|
|
1283
1284
|
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
})
|
|
1290
|
-
.s("PaymentCryptographyDataPlane", "DecryptData", {})
|
|
1291
|
-
.n("PaymentCryptographyDataClient", "DecryptDataCommand")
|
|
1292
|
-
.sc(DecryptData$)
|
|
1293
|
-
.build() {
|
|
1285
|
+
const command = makeBuilder(commonParams, "PaymentCryptographyDataPlane", "PaymentCryptographyDataClient", getEndpointPlugin);
|
|
1286
|
+
const _ep0 = {};
|
|
1287
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
1288
|
+
|
|
1289
|
+
class DecryptDataCommand extends command(_ep0, _mw0, "DecryptData", DecryptData$) {
|
|
1294
1290
|
}
|
|
1295
1291
|
|
|
1296
|
-
class EncryptDataCommand extends
|
|
1297
|
-
.classBuilder()
|
|
1298
|
-
.ep(commonParams)
|
|
1299
|
-
.m(function (Command, cs, config, o) {
|
|
1300
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1301
|
-
})
|
|
1302
|
-
.s("PaymentCryptographyDataPlane", "EncryptData", {})
|
|
1303
|
-
.n("PaymentCryptographyDataClient", "EncryptDataCommand")
|
|
1304
|
-
.sc(EncryptData$)
|
|
1305
|
-
.build() {
|
|
1292
|
+
class EncryptDataCommand extends command(_ep0, _mw0, "EncryptData", EncryptData$) {
|
|
1306
1293
|
}
|
|
1307
1294
|
|
|
1308
|
-
class GenerateAs2805KekValidationCommand extends
|
|
1309
|
-
.classBuilder()
|
|
1310
|
-
.ep(commonParams)
|
|
1311
|
-
.m(function (Command, cs, config, o) {
|
|
1312
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1313
|
-
})
|
|
1314
|
-
.s("PaymentCryptographyDataPlane", "GenerateAs2805KekValidation", {})
|
|
1315
|
-
.n("PaymentCryptographyDataClient", "GenerateAs2805KekValidationCommand")
|
|
1316
|
-
.sc(GenerateAs2805KekValidation$)
|
|
1317
|
-
.build() {
|
|
1295
|
+
class GenerateAs2805KekValidationCommand extends command(_ep0, _mw0, "GenerateAs2805KekValidation", GenerateAs2805KekValidation$) {
|
|
1318
1296
|
}
|
|
1319
1297
|
|
|
1320
|
-
class GenerateAuthRequestCryptogramCommand extends
|
|
1321
|
-
.classBuilder()
|
|
1322
|
-
.ep(commonParams)
|
|
1323
|
-
.m(function (Command, cs, config, o) {
|
|
1324
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1325
|
-
})
|
|
1326
|
-
.s("PaymentCryptographyDataPlane", "GenerateAuthRequestCryptogram", {})
|
|
1327
|
-
.n("PaymentCryptographyDataClient", "GenerateAuthRequestCryptogramCommand")
|
|
1328
|
-
.sc(GenerateAuthRequestCryptogram$)
|
|
1329
|
-
.build() {
|
|
1298
|
+
class GenerateAuthRequestCryptogramCommand extends command(_ep0, _mw0, "GenerateAuthRequestCryptogram", GenerateAuthRequestCryptogram$) {
|
|
1330
1299
|
}
|
|
1331
1300
|
|
|
1332
|
-
class GenerateCardValidationDataCommand extends
|
|
1333
|
-
.classBuilder()
|
|
1334
|
-
.ep(commonParams)
|
|
1335
|
-
.m(function (Command, cs, config, o) {
|
|
1336
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1337
|
-
})
|
|
1338
|
-
.s("PaymentCryptographyDataPlane", "GenerateCardValidationData", {})
|
|
1339
|
-
.n("PaymentCryptographyDataClient", "GenerateCardValidationDataCommand")
|
|
1340
|
-
.sc(GenerateCardValidationData$)
|
|
1341
|
-
.build() {
|
|
1301
|
+
class GenerateCardValidationDataCommand extends command(_ep0, _mw0, "GenerateCardValidationData", GenerateCardValidationData$) {
|
|
1342
1302
|
}
|
|
1343
1303
|
|
|
1344
|
-
class GenerateMacCommand extends
|
|
1345
|
-
.classBuilder()
|
|
1346
|
-
.ep(commonParams)
|
|
1347
|
-
.m(function (Command, cs, config, o) {
|
|
1348
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1349
|
-
})
|
|
1350
|
-
.s("PaymentCryptographyDataPlane", "GenerateMac", {})
|
|
1351
|
-
.n("PaymentCryptographyDataClient", "GenerateMacCommand")
|
|
1352
|
-
.sc(GenerateMac$)
|
|
1353
|
-
.build() {
|
|
1304
|
+
class GenerateMacCommand extends command(_ep0, _mw0, "GenerateMac", GenerateMac$) {
|
|
1354
1305
|
}
|
|
1355
1306
|
|
|
1356
|
-
class GenerateMacEmvPinChangeCommand extends
|
|
1357
|
-
.classBuilder()
|
|
1358
|
-
.ep(commonParams)
|
|
1359
|
-
.m(function (Command, cs, config, o) {
|
|
1360
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1361
|
-
})
|
|
1362
|
-
.s("PaymentCryptographyDataPlane", "GenerateMacEmvPinChange", {})
|
|
1363
|
-
.n("PaymentCryptographyDataClient", "GenerateMacEmvPinChangeCommand")
|
|
1364
|
-
.sc(GenerateMacEmvPinChange$)
|
|
1365
|
-
.build() {
|
|
1307
|
+
class GenerateMacEmvPinChangeCommand extends command(_ep0, _mw0, "GenerateMacEmvPinChange", GenerateMacEmvPinChange$) {
|
|
1366
1308
|
}
|
|
1367
1309
|
|
|
1368
|
-
class GeneratePinDataCommand extends
|
|
1369
|
-
.classBuilder()
|
|
1370
|
-
.ep(commonParams)
|
|
1371
|
-
.m(function (Command, cs, config, o) {
|
|
1372
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1373
|
-
})
|
|
1374
|
-
.s("PaymentCryptographyDataPlane", "GeneratePinData", {})
|
|
1375
|
-
.n("PaymentCryptographyDataClient", "GeneratePinDataCommand")
|
|
1376
|
-
.sc(GeneratePinData$)
|
|
1377
|
-
.build() {
|
|
1310
|
+
class GeneratePinDataCommand extends command(_ep0, _mw0, "GeneratePinData", GeneratePinData$) {
|
|
1378
1311
|
}
|
|
1379
1312
|
|
|
1380
|
-
class ReEncryptDataCommand extends
|
|
1381
|
-
.classBuilder()
|
|
1382
|
-
.ep(commonParams)
|
|
1383
|
-
.m(function (Command, cs, config, o) {
|
|
1384
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1385
|
-
})
|
|
1386
|
-
.s("PaymentCryptographyDataPlane", "ReEncryptData", {})
|
|
1387
|
-
.n("PaymentCryptographyDataClient", "ReEncryptDataCommand")
|
|
1388
|
-
.sc(ReEncryptData$)
|
|
1389
|
-
.build() {
|
|
1313
|
+
class ReEncryptDataCommand extends command(_ep0, _mw0, "ReEncryptData", ReEncryptData$) {
|
|
1390
1314
|
}
|
|
1391
1315
|
|
|
1392
|
-
class TranslateKeyMaterialCommand extends
|
|
1393
|
-
.classBuilder()
|
|
1394
|
-
.ep(commonParams)
|
|
1395
|
-
.m(function (Command, cs, config, o) {
|
|
1396
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1397
|
-
})
|
|
1398
|
-
.s("PaymentCryptographyDataPlane", "TranslateKeyMaterial", {})
|
|
1399
|
-
.n("PaymentCryptographyDataClient", "TranslateKeyMaterialCommand")
|
|
1400
|
-
.sc(TranslateKeyMaterial$)
|
|
1401
|
-
.build() {
|
|
1316
|
+
class TranslateKeyMaterialCommand extends command(_ep0, _mw0, "TranslateKeyMaterial", TranslateKeyMaterial$) {
|
|
1402
1317
|
}
|
|
1403
1318
|
|
|
1404
|
-
class TranslatePinDataCommand extends
|
|
1405
|
-
.classBuilder()
|
|
1406
|
-
.ep(commonParams)
|
|
1407
|
-
.m(function (Command, cs, config, o) {
|
|
1408
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1409
|
-
})
|
|
1410
|
-
.s("PaymentCryptographyDataPlane", "TranslatePinData", {})
|
|
1411
|
-
.n("PaymentCryptographyDataClient", "TranslatePinDataCommand")
|
|
1412
|
-
.sc(TranslatePinData$)
|
|
1413
|
-
.build() {
|
|
1319
|
+
class TranslatePinDataCommand extends command(_ep0, _mw0, "TranslatePinData", TranslatePinData$) {
|
|
1414
1320
|
}
|
|
1415
1321
|
|
|
1416
|
-
class VerifyAuthRequestCryptogramCommand extends
|
|
1417
|
-
.classBuilder()
|
|
1418
|
-
.ep(commonParams)
|
|
1419
|
-
.m(function (Command, cs, config, o) {
|
|
1420
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1421
|
-
})
|
|
1422
|
-
.s("PaymentCryptographyDataPlane", "VerifyAuthRequestCryptogram", {})
|
|
1423
|
-
.n("PaymentCryptographyDataClient", "VerifyAuthRequestCryptogramCommand")
|
|
1424
|
-
.sc(VerifyAuthRequestCryptogram$)
|
|
1425
|
-
.build() {
|
|
1322
|
+
class VerifyAuthRequestCryptogramCommand extends command(_ep0, _mw0, "VerifyAuthRequestCryptogram", VerifyAuthRequestCryptogram$) {
|
|
1426
1323
|
}
|
|
1427
1324
|
|
|
1428
|
-
class VerifyCardValidationDataCommand extends
|
|
1429
|
-
.classBuilder()
|
|
1430
|
-
.ep(commonParams)
|
|
1431
|
-
.m(function (Command, cs, config, o) {
|
|
1432
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1433
|
-
})
|
|
1434
|
-
.s("PaymentCryptographyDataPlane", "VerifyCardValidationData", {})
|
|
1435
|
-
.n("PaymentCryptographyDataClient", "VerifyCardValidationDataCommand")
|
|
1436
|
-
.sc(VerifyCardValidationData$)
|
|
1437
|
-
.build() {
|
|
1325
|
+
class VerifyCardValidationDataCommand extends command(_ep0, _mw0, "VerifyCardValidationData", VerifyCardValidationData$) {
|
|
1438
1326
|
}
|
|
1439
1327
|
|
|
1440
|
-
class VerifyMacCommand extends
|
|
1441
|
-
.classBuilder()
|
|
1442
|
-
.ep(commonParams)
|
|
1443
|
-
.m(function (Command, cs, config, o) {
|
|
1444
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1445
|
-
})
|
|
1446
|
-
.s("PaymentCryptographyDataPlane", "VerifyMac", {})
|
|
1447
|
-
.n("PaymentCryptographyDataClient", "VerifyMacCommand")
|
|
1448
|
-
.sc(VerifyMac$)
|
|
1449
|
-
.build() {
|
|
1328
|
+
class VerifyMacCommand extends command(_ep0, _mw0, "VerifyMac", VerifyMac$) {
|
|
1450
1329
|
}
|
|
1451
1330
|
|
|
1452
|
-
class VerifyPinDataCommand extends
|
|
1453
|
-
.classBuilder()
|
|
1454
|
-
.ep(commonParams)
|
|
1455
|
-
.m(function (Command, cs, config, o) {
|
|
1456
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1457
|
-
})
|
|
1458
|
-
.s("PaymentCryptographyDataPlane", "VerifyPinData", {})
|
|
1459
|
-
.n("PaymentCryptographyDataClient", "VerifyPinDataCommand")
|
|
1460
|
-
.sc(VerifyPinData$)
|
|
1461
|
-
.build() {
|
|
1331
|
+
class VerifyPinDataCommand extends command(_ep0, _mw0, "VerifyPinData", VerifyPinData$) {
|
|
1462
1332
|
}
|
|
1463
1333
|
|
|
1464
1334
|
const commands = {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "PaymentCryptographyDataPlane", "PaymentCryptographyDataClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DecryptData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DecryptDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "DecryptData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "DecryptDataCommand")
|
|
14
|
-
.sc(DecryptData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DecryptDataCommand extends command(_ep0, _mw0, "DecryptData", DecryptData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { EncryptData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class EncryptDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "EncryptData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "EncryptDataCommand")
|
|
14
|
-
.sc(EncryptData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class EncryptDataCommand extends command(_ep0, _mw0, "EncryptData", EncryptData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateAs2805KekValidation$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateAs2805KekValidationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateAs2805KekValidation", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateAs2805KekValidationCommand")
|
|
14
|
-
.sc(GenerateAs2805KekValidation$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateAs2805KekValidationCommand extends command(_ep0, _mw0, "GenerateAs2805KekValidation", GenerateAs2805KekValidation$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateAuthRequestCryptogram$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateAuthRequestCryptogramCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateAuthRequestCryptogram", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateAuthRequestCryptogramCommand")
|
|
14
|
-
.sc(GenerateAuthRequestCryptogram$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateAuthRequestCryptogramCommand extends command(_ep0, _mw0, "GenerateAuthRequestCryptogram", GenerateAuthRequestCryptogram$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateCardValidationData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateCardValidationDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateCardValidationData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateCardValidationDataCommand")
|
|
14
|
-
.sc(GenerateCardValidationData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateCardValidationDataCommand extends command(_ep0, _mw0, "GenerateCardValidationData", GenerateCardValidationData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateMac$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateMacCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateMac", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateMacCommand")
|
|
14
|
-
.sc(GenerateMac$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateMacCommand extends command(_ep0, _mw0, "GenerateMac", GenerateMac$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateMacEmvPinChange$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateMacEmvPinChangeCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateMacEmvPinChange", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateMacEmvPinChangeCommand")
|
|
14
|
-
.sc(GenerateMacEmvPinChange$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateMacEmvPinChangeCommand extends command(_ep0, _mw0, "GenerateMacEmvPinChange", GenerateMacEmvPinChange$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GeneratePinData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GeneratePinDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GeneratePinData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GeneratePinDataCommand")
|
|
14
|
-
.sc(GeneratePinData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GeneratePinDataCommand extends command(_ep0, _mw0, "GeneratePinData", GeneratePinData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ReEncryptData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ReEncryptDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "ReEncryptData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "ReEncryptDataCommand")
|
|
14
|
-
.sc(ReEncryptData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ReEncryptDataCommand extends command(_ep0, _mw0, "ReEncryptData", ReEncryptData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { TranslateKeyMaterial$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class TranslateKeyMaterialCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "TranslateKeyMaterial", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "TranslateKeyMaterialCommand")
|
|
14
|
-
.sc(TranslateKeyMaterial$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class TranslateKeyMaterialCommand extends command(_ep0, _mw0, "TranslateKeyMaterial", TranslateKeyMaterial$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { TranslatePinData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class TranslatePinDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "TranslatePinData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "TranslatePinDataCommand")
|
|
14
|
-
.sc(TranslatePinData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class TranslatePinDataCommand extends command(_ep0, _mw0, "TranslatePinData", TranslatePinData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { VerifyAuthRequestCryptogram$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class VerifyAuthRequestCryptogramCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "VerifyAuthRequestCryptogram", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "VerifyAuthRequestCryptogramCommand")
|
|
14
|
-
.sc(VerifyAuthRequestCryptogram$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class VerifyAuthRequestCryptogramCommand extends command(_ep0, _mw0, "VerifyAuthRequestCryptogram", VerifyAuthRequestCryptogram$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { VerifyCardValidationData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class VerifyCardValidationDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "VerifyCardValidationData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "VerifyCardValidationDataCommand")
|
|
14
|
-
.sc(VerifyCardValidationData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class VerifyCardValidationDataCommand extends command(_ep0, _mw0, "VerifyCardValidationData", VerifyCardValidationData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { VerifyMac$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class VerifyMacCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "VerifyMac", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "VerifyMacCommand")
|
|
14
|
-
.sc(VerifyMac$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class VerifyMacCommand extends command(_ep0, _mw0, "VerifyMac", VerifyMac$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { VerifyPinData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class VerifyPinDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "VerifyPinData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "VerifyPinDataCommand")
|
|
14
|
-
.sc(VerifyPinData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class VerifyPinDataCommand extends command(_ep0, _mw0, "VerifyPinData", VerifyPinData$) {
|
|
16
4
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./PaymentCryptographyDataClient";
|
|
2
2
|
export * from "./PaymentCryptographyData";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
4
5
|
export * from "./schemas/schemas_0";
|
|
5
6
|
export * from "./models/enums";
|
|
6
7
|
export * from "./models/errors";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import type { PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./PaymentCryptographyDataClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
7
|
+
new (input: I): import("@smithy/core/client").CommandImpl<I, O, PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
9
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
2
|
import type { DecryptDataInput, DecryptDataOutput } from "../models/models_0";
|
|
4
|
-
import type { PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyDataClient";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface DecryptDataCommandInput extends DecryptDataInput {
|
|
|
22
19
|
export interface DecryptDataCommandOutput extends DecryptDataOutput, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const DecryptDataCommand_base: {
|
|
25
|
-
new (input: DecryptDataCommandInput): import("@smithy/core/client").CommandImpl<DecryptDataCommandInput, DecryptDataCommandOutput, PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: DecryptDataCommandInput): import("@smithy/core/client").CommandImpl<DecryptDataCommandInput, DecryptDataCommandOutput, PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: DecryptDataCommandInput): import("@smithy/core/client").CommandImpl<DecryptDataCommandInput, DecryptDataCommandOutput, import("..").PaymentCryptographyDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DecryptDataCommandInput): import("@smithy/core/client").CommandImpl<DecryptDataCommandInput, DecryptDataCommandOutput, import("..").PaymentCryptographyDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Decrypts ciphertext data to plaintext using a symmetric (TDES, AES), asymmetric (RSA), or derived (DUKPT or EMV) encryption key scheme. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/decrypt-data.html">Decrypt data</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>You can use an decryption key generated within Amazon Web Services Payment Cryptography, or you can import your own decryption key by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>. For this operation, the key must have <code>KeyModesOfUse</code> set to <code>Decrypt</code>. In asymmetric decryption, Amazon Web Services Payment Cryptography decrypts the ciphertext using the private component of the asymmetric encryption key pair. For data encryption outside of Amazon Web Services Payment Cryptography, you can export the public component of the asymmetric key pair by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetPublicKeyCertificate.html">GetPublicCertificate</a>.</p> <p>This operation also supports dynamic keys, allowing you to pass a dynamic decryption key as a TR-31 WrappedKeyBlock. This can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To decrypt using dynamic keys, the <code>keyARN</code> is the Key Encryption Key (KEK) of the TR-31 wrapped decryption key material. The incoming wrapped key shall have a key purpose of D0 with a mode of use of B or D. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/use-cases-acquirers-dynamickeys.html">Using Dynamic Keys</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>For symmetric and DUKPT decryption, Amazon Web Services Payment Cryptography supports <code>TDES</code> and <code>AES</code> algorithms. For EMV decryption, Amazon Web Services Payment Cryptography supports <code>TDES</code> algorithms. For asymmetric decryption, Amazon Web Services Payment Cryptography supports <code>RSA</code>. </p> <p>When you use TDES or TDES DUKPT, the ciphertext data length must be a multiple of 8 bytes. For AES or AES DUKPT, the ciphertext data length must be a multiple of 16 bytes. For RSA, it sould be equal to the key size unless padding is enabled.</p> <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> <p> <b>Cross-account use</b>: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security_iam_resource-based-policies.html">Resource-based policies</a>.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a>EncryptData</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetPublicKeyCertificate.html">GetPublicCertificate</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> </p> </li> </ul>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
2
|
import type { EncryptDataInput, EncryptDataOutput } from "../models/models_0";
|
|
4
|
-
import type { PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyDataClient";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface EncryptDataCommandInput extends EncryptDataInput {
|
|
|
22
19
|
export interface EncryptDataCommandOutput extends EncryptDataOutput, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const EncryptDataCommand_base: {
|
|
25
|
-
new (input: EncryptDataCommandInput): import("@smithy/core/client").CommandImpl<EncryptDataCommandInput, EncryptDataCommandOutput, PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: EncryptDataCommandInput): import("@smithy/core/client").CommandImpl<EncryptDataCommandInput, EncryptDataCommandOutput, PaymentCryptographyDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: EncryptDataCommandInput): import("@smithy/core/client").CommandImpl<EncryptDataCommandInput, EncryptDataCommandOutput, import("..").PaymentCryptographyDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: EncryptDataCommandInput): import("@smithy/core/client").CommandImpl<EncryptDataCommandInput, EncryptDataCommandOutput, import("..").PaymentCryptographyDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Encrypts plaintext data to ciphertext using a symmetric (TDES, AES), asymmetric (RSA), or derived (DUKPT or EMV) encryption key scheme. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/encrypt-data.html">Encrypt data</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>You can 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>. You can import your own encryption key by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>.</p> <p>For this operation, the key must have <code>KeyModesOfUse</code> set to <code>Encrypt</code>. In asymmetric encryption, plaintext is encrypted using public component. You can import the public component of an asymmetric key pair created outside Amazon Web Services Payment Cryptography by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>. </p> <p>This operation also supports dynamic keys, allowing you to pass a dynamic encryption key as a TR-31 WrappedKeyBlock. This can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To encrypt using dynamic keys, the <code>keyARN</code> is the Key Encryption Key (KEK) of the TR-31 wrapped encryption key material. The incoming wrapped key shall have a key purpose of D0 with a mode of use of B or D. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/use-cases-acquirers-dynamickeys.html">Using Dynamic Keys</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>For symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports <code>TDES</code> and <code>AES</code> algorithms. For EMV encryption, Amazon Web Services Payment Cryptography supports <code>TDES</code> algorithms.For asymmetric encryption, Amazon Web Services Payment Cryptography supports <code>RSA</code>. </p> <p>When you use TDES or TDES DUKPT, the plaintext data length must be a multiple of 8 bytes. For AES or AES DUKPT, the plaintext data length must be a multiple of 16 bytes. For RSA, it sould be equal to the key size unless padding is enabled.</p> <p>To encrypt using DUKPT, you must already have a BDK (Base Derivation Key) key in your account with <code>KeyModesOfUse</code> set to <code>DeriveKey</code>, or you can generate a new DUKPT key by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a>. To encrypt using EMV, you must already have an IMK (Issuer Master Key) key in your account with <code>KeyModesOfUse</code> set to <code>DeriveKey</code>.</p> <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> <p> <b>Cross-account use</b>: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security_iam_resource-based-policies.html">Resource-based policies</a>.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a>DecryptData</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetPublicKeyCertificate.html">GetPublicCertificate</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> </p> </li> <li> <p> <a>ReEncryptData</a> </p> </li> </ul>
|