@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.
- package/LICENSE +201 -0
- package/README.md +294 -0
- package/dist-cjs/PaymentCryptographyData.js +33 -0
- package/dist-cjs/PaymentCryptographyDataClient.js +41 -0
- package/dist-cjs/commands/DecryptDataCommand.js +47 -0
- package/dist-cjs/commands/EncryptDataCommand.js +47 -0
- package/dist-cjs/commands/GenerateCardValidationDataCommand.js +47 -0
- package/dist-cjs/commands/GenerateMacCommand.js +47 -0
- package/dist-cjs/commands/GeneratePinDataCommand.js +47 -0
- package/dist-cjs/commands/ReEncryptDataCommand.js +47 -0
- package/dist-cjs/commands/TranslatePinDataCommand.js +47 -0
- package/dist-cjs/commands/VerifyAuthRequestCryptogramCommand.js +47 -0
- package/dist-cjs/commands/VerifyCardValidationDataCommand.js +47 -0
- package/dist-cjs/commands/VerifyMacCommand.js +47 -0
- package/dist-cjs/commands/VerifyPinDataCommand.js +47 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/PaymentCryptographyDataServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +526 -0
- package/dist-cjs/protocols/Aws_restJson1.js +963 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/PaymentCryptographyData.js +29 -0
- package/dist-es/PaymentCryptographyDataClient.js +37 -0
- package/dist-es/commands/DecryptDataCommand.js +43 -0
- package/dist-es/commands/EncryptDataCommand.js +43 -0
- package/dist-es/commands/GenerateCardValidationDataCommand.js +43 -0
- package/dist-es/commands/GenerateMacCommand.js +43 -0
- package/dist-es/commands/GeneratePinDataCommand.js +43 -0
- package/dist-es/commands/ReEncryptDataCommand.js +43 -0
- package/dist-es/commands/TranslatePinDataCommand.js +43 -0
- package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +43 -0
- package/dist-es/commands/VerifyCardValidationDataCommand.js +43 -0
- package/dist-es/commands/VerifyMacCommand.js +43 -0
- package/dist-es/commands/VerifyPinDataCommand.js +43 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/PaymentCryptographyDataServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +488 -0
- package/dist-es/protocols/Aws_restJson1.js +938 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/PaymentCryptographyData.d.ts +88 -0
- package/dist-types/PaymentCryptographyDataClient.d.ts +174 -0
- package/dist-types/commands/DecryptDataCommand.d.ts +133 -0
- package/dist-types/commands/EncryptDataCommand.d.ts +138 -0
- package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +144 -0
- package/dist-types/commands/GenerateMacCommand.d.ts +134 -0
- package/dist-types/commands/GeneratePinDataCommand.d.ts +155 -0
- package/dist-types/commands/ReEncryptDataCommand.d.ts +150 -0
- package/dist-types/commands/TranslatePinDataCommand.d.ts +147 -0
- package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +150 -0
- package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +156 -0
- package/dist-types/commands/VerifyMacCommand.d.ts +137 -0
- package/dist-types/commands/VerifyPinDataCommand.d.ts +134 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +11 -0
- package/dist-types/models/PaymentCryptographyDataServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2191 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +101 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/PaymentCryptographyData.d.ts +194 -0
- package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +181 -0
- package/dist-types/ts3.4/commands/DecryptDataCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/EncryptDataCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GenerateCardValidationDataCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GeneratePinDataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ReEncryptDataCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/TranslatePinDataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/VerifyAuthRequestCryptogramCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/VerifyCardValidationDataCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/VerifyPinDataCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/PaymentCryptographyDataServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1168 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +137 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +99 -0
|
@@ -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 { VerifyPinDataInput, VerifyPinDataOutput } 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 VerifyPinDataCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface VerifyPinDataCommandInput extends VerifyPinDataInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link VerifyPinDataCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface VerifyPinDataCommandOutput extends VerifyPinDataOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Verifies pin-related data such as PIN and PIN Offset using algorithms including VISA PVV and IBM3624. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/verify-pin-data.html">Verify PIN data</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p>
|
|
27
|
+
* <p>This operation verifies PIN data for user payment card. A card holder PIN data is never transmitted in clear to or from Amazon Web Services Payment Cryptography. This operation uses PIN Verification Key (PVK) for PIN or PIN Offset generation and then encrypts it using PIN Encryption Key (PEK) to create an <code>EncryptedPinBlock</code> for transmission from Amazon Web Services Payment Cryptography. </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>GeneratePinData</a>
|
|
38
|
+
* </p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>
|
|
42
|
+
* <a>TranslatePinData</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, VerifyPinDataCommand } from "@aws-sdk/client-payment-cryptography-data"; // ES Modules import
|
|
50
|
+
* // const { PaymentCryptographyDataClient, VerifyPinDataCommand } = require("@aws-sdk/client-payment-cryptography-data"); // CommonJS import
|
|
51
|
+
* const client = new PaymentCryptographyDataClient(config);
|
|
52
|
+
* const input = { // VerifyPinDataInput
|
|
53
|
+
* VerificationKeyIdentifier: "STRING_VALUE", // required
|
|
54
|
+
* EncryptionKeyIdentifier: "STRING_VALUE", // required
|
|
55
|
+
* VerificationAttributes: { // PinVerificationAttributes Union: only one key present
|
|
56
|
+
* VisaPin: { // VisaPinVerification
|
|
57
|
+
* PinVerificationKeyIndex: Number("int"), // required
|
|
58
|
+
* VerificationValue: "STRING_VALUE", // required
|
|
59
|
+
* },
|
|
60
|
+
* Ibm3624Pin: { // Ibm3624PinVerification
|
|
61
|
+
* DecimalizationTable: "STRING_VALUE", // required
|
|
62
|
+
* PinValidationDataPadCharacter: "STRING_VALUE", // required
|
|
63
|
+
* PinValidationData: "STRING_VALUE", // required
|
|
64
|
+
* PinOffset: "STRING_VALUE", // required
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* EncryptedPinBlock: "STRING_VALUE", // required
|
|
68
|
+
* PrimaryAccountNumber: "STRING_VALUE", // required
|
|
69
|
+
* PinBlockFormat: "STRING_VALUE", // required
|
|
70
|
+
* PinDataLength: Number("int"),
|
|
71
|
+
* DukptAttributes: { // DukptAttributes
|
|
72
|
+
* KeySerialNumber: "STRING_VALUE", // required
|
|
73
|
+
* DukptDerivationType: "STRING_VALUE", // required
|
|
74
|
+
* },
|
|
75
|
+
* };
|
|
76
|
+
* const command = new VerifyPinDataCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* // { // VerifyPinDataOutput
|
|
79
|
+
* // VerificationKeyArn: "STRING_VALUE", // required
|
|
80
|
+
* // VerificationKeyCheckValue: "STRING_VALUE", // required
|
|
81
|
+
* // EncryptionKeyArn: "STRING_VALUE", // required
|
|
82
|
+
* // EncryptionKeyCheckValue: "STRING_VALUE", // required
|
|
83
|
+
* // };
|
|
84
|
+
*
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @param VerifyPinDataCommandInput - {@link VerifyPinDataCommandInput}
|
|
88
|
+
* @returns {@link VerifyPinDataCommandOutput}
|
|
89
|
+
* @see {@link VerifyPinDataCommandInput} for command's `input` shape.
|
|
90
|
+
* @see {@link VerifyPinDataCommandOutput} for command's `response` shape.
|
|
91
|
+
* @see {@link PaymentCryptographyDataClientResolvedConfig | config} for PaymentCryptographyDataClient's `config` shape.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
94
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link InternalServerException} (server fault)
|
|
97
|
+
* <p>The request processing has failed because of an unknown error, exception, or failure.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
100
|
+
* <p>The request was denied due to an invalid resource error.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
103
|
+
* <p>The request was denied due to request throttling.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ValidationException} (client fault)
|
|
106
|
+
* <p>The request was denied due to an invalid request error.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link VerificationFailedException} (client fault)
|
|
109
|
+
* <p>This request failed verification.</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 VerifyPinDataCommand extends $Command<VerifyPinDataCommandInput, VerifyPinDataCommandOutput, PaymentCryptographyDataClientResolvedConfig> {
|
|
116
|
+
readonly input: VerifyPinDataCommandInput;
|
|
117
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
constructor(input: VerifyPinDataCommandInput);
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<VerifyPinDataCommandInput, VerifyPinDataCommandOutput>;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
private serialize;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
private deserialize;
|
|
134
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./DecryptDataCommand";
|
|
2
|
+
export * from "./EncryptDataCommand";
|
|
3
|
+
export * from "./GenerateCardValidationDataCommand";
|
|
4
|
+
export * from "./GenerateMacCommand";
|
|
5
|
+
export * from "./GeneratePinDataCommand";
|
|
6
|
+
export * from "./ReEncryptDataCommand";
|
|
7
|
+
export * from "./TranslatePinDataCommand";
|
|
8
|
+
export * from "./VerifyAuthRequestCryptogramCommand";
|
|
9
|
+
export * from "./VerifyCardValidationDataCommand";
|
|
10
|
+
export * from "./VerifyMacCommand";
|
|
11
|
+
export * from "./VerifyPinDataCommand";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EndpointParameters as __EndpointParameters, EndpointV2 } from "@aws-sdk/types";
|
|
2
|
+
import { Endpoint, Provider } from "@smithy/types";
|
|
3
|
+
export interface ClientInputEndpointParameters {
|
|
4
|
+
region?: string | Provider<string>;
|
|
5
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
6
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
7
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
8
|
+
}
|
|
9
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
10
|
+
defaultSigningName: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
13
|
+
defaultSigningName: string;
|
|
14
|
+
};
|
|
15
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
16
|
+
Region?: string;
|
|
17
|
+
UseDualStack?: boolean;
|
|
18
|
+
UseFIPS?: boolean;
|
|
19
|
+
Endpoint?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>You use the Amazon Web Services Payment Cryptography Data Plane to manage how encryption keys are used for payment-related transaction processing and associated cryptographic operations. You can encrypt, decrypt, generate, verify, and translate payment-related cryptographic operations in Amazon Web Services Payment Cryptography. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/data-operations.html">Data operations</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p>
|
|
3
|
+
* <p>To manage your encryption keys, you use the <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/Welcome.html">Amazon Web Services Payment Cryptography Control Plane</a>. You can create, import, export, share, manage, and delete keys. You can also manage Identity and Access Management (IAM) policies for keys. </p>
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
export * from "./PaymentCryptographyDataClient";
|
|
8
|
+
export * from "./PaymentCryptographyData";
|
|
9
|
+
export * from "./commands";
|
|
10
|
+
export * from "./models";
|
|
11
|
+
export { PaymentCryptographyDataServiceException } from "./models/PaymentCryptographyDataServiceException";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* Base exception class for all service exceptions from PaymentCryptographyData service.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PaymentCryptographyDataServiceException extends __ServiceException {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(options: __ServiceExceptionOptions);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|