@aws-sdk/client-payment-cryptography 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 +369 -0
- package/dist-cjs/PaymentCryptography.js +51 -0
- package/dist-cjs/PaymentCryptographyClient.js +41 -0
- package/dist-cjs/commands/CreateAliasCommand.js +46 -0
- package/dist-cjs/commands/CreateKeyCommand.js +46 -0
- package/dist-cjs/commands/DeleteAliasCommand.js +46 -0
- package/dist-cjs/commands/DeleteKeyCommand.js +46 -0
- package/dist-cjs/commands/ExportKeyCommand.js +47 -0
- package/dist-cjs/commands/GetAliasCommand.js +46 -0
- package/dist-cjs/commands/GetKeyCommand.js +46 -0
- package/dist-cjs/commands/GetParametersForExportCommand.js +47 -0
- package/dist-cjs/commands/GetParametersForImportCommand.js +47 -0
- package/dist-cjs/commands/GetPublicKeyCertificateCommand.js +47 -0
- package/dist-cjs/commands/ImportKeyCommand.js +47 -0
- package/dist-cjs/commands/ListAliasesCommand.js +46 -0
- package/dist-cjs/commands/ListKeysCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/RestoreKeyCommand.js +46 -0
- package/dist-cjs/commands/StartKeyUsageCommand.js +46 -0
- package/dist-cjs/commands/StopKeyUsageCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateAliasCommand.js +46 -0
- package/dist-cjs/commands/index.js +23 -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 +11 -0
- package/dist-cjs/models/PaymentCryptographyServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +291 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAliasesPaginator.js +29 -0
- package/dist-cjs/pagination/ListKeysPaginator.js +29 -0
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1396 -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/PaymentCryptography.js +47 -0
- package/dist-es/PaymentCryptographyClient.js +37 -0
- package/dist-es/commands/CreateAliasCommand.js +42 -0
- package/dist-es/commands/CreateKeyCommand.js +42 -0
- package/dist-es/commands/DeleteAliasCommand.js +42 -0
- package/dist-es/commands/DeleteKeyCommand.js +42 -0
- package/dist-es/commands/ExportKeyCommand.js +43 -0
- package/dist-es/commands/GetAliasCommand.js +42 -0
- package/dist-es/commands/GetKeyCommand.js +42 -0
- package/dist-es/commands/GetParametersForExportCommand.js +43 -0
- package/dist-es/commands/GetParametersForImportCommand.js +43 -0
- package/dist-es/commands/GetPublicKeyCertificateCommand.js +43 -0
- package/dist-es/commands/ImportKeyCommand.js +43 -0
- package/dist-es/commands/ListAliasesCommand.js +42 -0
- package/dist-es/commands/ListKeysCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/RestoreKeyCommand.js +42 -0
- package/dist-es/commands/StartKeyUsageCommand.js +42 -0
- package/dist-es/commands/StopKeyUsageCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateAliasCommand.js +42 -0
- package/dist-es/commands/index.js +20 -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 +6 -0
- package/dist-es/models/PaymentCryptographyServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +267 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAliasesPaginator.js +25 -0
- package/dist-es/pagination/ListKeysPaginator.js +25 -0
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +1353 -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/PaymentCryptography.d.ts +154 -0
- package/dist-types/PaymentCryptographyClient.d.ts +186 -0
- package/dist-types/commands/CreateAliasCommand.d.ts +130 -0
- package/dist-types/commands/CreateKeyCommand.d.ts +175 -0
- package/dist-types/commands/DeleteAliasCommand.d.ts +120 -0
- package/dist-types/commands/DeleteKeyCommand.d.ts +149 -0
- package/dist-types/commands/ExportKeyCommand.d.ts +153 -0
- package/dist-types/commands/GetAliasCommand.d.ts +121 -0
- package/dist-types/commands/GetKeyCommand.d.ts +142 -0
- package/dist-types/commands/GetParametersForExportCommand.d.ts +120 -0
- package/dist-types/commands/GetParametersForImportCommand.d.ts +120 -0
- package/dist-types/commands/GetPublicKeyCertificateCommand.d.ts +95 -0
- package/dist-types/commands/ImportKeyCommand.d.ts +301 -0
- package/dist-types/commands/ListAliasesCommand.d.ts +127 -0
- package/dist-types/commands/ListKeysCommand.d.ts +143 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +119 -0
- package/dist-types/commands/RestoreKeyCommand.d.ts +150 -0
- package/dist-types/commands/StartKeyUsageCommand.d.ts +138 -0
- package/dist-types/commands/StopKeyUsageCommand.d.ts +144 -0
- package/dist-types/commands/TagResourceCommand.d.ts +122 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +115 -0
- package/dist-types/commands/UpdateAliasCommand.d.ts +125 -0
- package/dist-types/commands/index.d.ts +20 -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 +15 -0
- package/dist-types/models/PaymentCryptographyServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1222 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAliasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListKeysPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +182 -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/PaymentCryptography.d.ts +347 -0
- package/dist-types/ts3.4/PaymentCryptographyClient.d.ts +235 -0
- package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ExportKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetKeyCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/GetParametersForExportCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetPublicKeyCertificateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ImportKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/RestoreKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartKeyUsageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StopKeyUsageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -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 +6 -0
- package/dist-types/ts3.4/models/PaymentCryptographyServiceException.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 +490 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +245 -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,291 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImportKeyInputFilterSensitiveLog = exports.ImportKeyMaterialFilterSensitiveLog = exports.TrustedCertificatePublicKeyFilterSensitiveLog = exports.ImportTr34KeyBlockFilterSensitiveLog = exports.RootCertificatePublicKeyFilterSensitiveLog = exports.GetPublicKeyCertificateOutputFilterSensitiveLog = exports.GetParametersForImportOutputFilterSensitiveLog = exports.GetParametersForExportOutputFilterSensitiveLog = exports.ExportKeyOutputFilterSensitiveLog = exports.WrappedKeyFilterSensitiveLog = exports.ExportKeyInputFilterSensitiveLog = exports.ExportKeyMaterialFilterSensitiveLog = exports.ExportTr34KeyBlockFilterSensitiveLog = exports.ImportKeyMaterial = exports.KeyMaterialType = exports.WrappedKeyMaterialFormat = exports.ExportKeyMaterial = exports.Tr34KeyBlockFormat = exports.KeyState = exports.KeyOrigin = exports.KeyCheckValueAlgorithm = exports.KeyUsage = exports.KeyClass = exports.KeyAlgorithm = exports.ValidationException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const PaymentCryptographyServiceException_1 = require("./PaymentCryptographyServiceException");
|
|
6
|
+
class AccessDeniedException extends PaymentCryptographyServiceException_1.PaymentCryptographyServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
class ConflictException extends PaymentCryptographyServiceException_1.PaymentCryptographyServiceException {
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ConflictException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
this.name = "ConflictException";
|
|
28
|
+
this.$fault = "client";
|
|
29
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
30
|
+
this.Message = opts.Message;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ConflictException = ConflictException;
|
|
34
|
+
class InternalServerException extends PaymentCryptographyServiceException_1.PaymentCryptographyServiceException {
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "InternalServerException",
|
|
38
|
+
$fault: "server",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
this.name = "InternalServerException";
|
|
42
|
+
this.$fault = "server";
|
|
43
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
44
|
+
this.Message = opts.Message;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.InternalServerException = InternalServerException;
|
|
48
|
+
class ResourceNotFoundException extends PaymentCryptographyServiceException_1.PaymentCryptographyServiceException {
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "ResourceNotFoundException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
this.name = "ResourceNotFoundException";
|
|
56
|
+
this.$fault = "client";
|
|
57
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
58
|
+
this.ResourceId = opts.ResourceId;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
62
|
+
class ServiceQuotaExceededException extends PaymentCryptographyServiceException_1.PaymentCryptographyServiceException {
|
|
63
|
+
constructor(opts) {
|
|
64
|
+
super({
|
|
65
|
+
name: "ServiceQuotaExceededException",
|
|
66
|
+
$fault: "client",
|
|
67
|
+
...opts,
|
|
68
|
+
});
|
|
69
|
+
this.name = "ServiceQuotaExceededException";
|
|
70
|
+
this.$fault = "client";
|
|
71
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
72
|
+
this.Message = opts.Message;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
76
|
+
class ServiceUnavailableException extends PaymentCryptographyServiceException_1.PaymentCryptographyServiceException {
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "ServiceUnavailableException",
|
|
80
|
+
$fault: "server",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
this.name = "ServiceUnavailableException";
|
|
84
|
+
this.$fault = "server";
|
|
85
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
86
|
+
this.Message = opts.Message;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
90
|
+
class ThrottlingException extends PaymentCryptographyServiceException_1.PaymentCryptographyServiceException {
|
|
91
|
+
constructor(opts) {
|
|
92
|
+
super({
|
|
93
|
+
name: "ThrottlingException",
|
|
94
|
+
$fault: "client",
|
|
95
|
+
...opts,
|
|
96
|
+
});
|
|
97
|
+
this.name = "ThrottlingException";
|
|
98
|
+
this.$fault = "client";
|
|
99
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
100
|
+
this.Message = opts.Message;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.ThrottlingException = ThrottlingException;
|
|
104
|
+
class ValidationException extends PaymentCryptographyServiceException_1.PaymentCryptographyServiceException {
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "ValidationException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
this.name = "ValidationException";
|
|
112
|
+
this.$fault = "client";
|
|
113
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
114
|
+
this.Message = opts.Message;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.ValidationException = ValidationException;
|
|
118
|
+
exports.KeyAlgorithm = {
|
|
119
|
+
AES_128: "AES_128",
|
|
120
|
+
AES_192: "AES_192",
|
|
121
|
+
AES_256: "AES_256",
|
|
122
|
+
RSA_2048: "RSA_2048",
|
|
123
|
+
RSA_3072: "RSA_3072",
|
|
124
|
+
RSA_4096: "RSA_4096",
|
|
125
|
+
TDES_2KEY: "TDES_2KEY",
|
|
126
|
+
TDES_3KEY: "TDES_3KEY",
|
|
127
|
+
};
|
|
128
|
+
exports.KeyClass = {
|
|
129
|
+
ASYMMETRIC_KEY_PAIR: "ASYMMETRIC_KEY_PAIR",
|
|
130
|
+
PRIVATE_KEY: "PRIVATE_KEY",
|
|
131
|
+
PUBLIC_KEY: "PUBLIC_KEY",
|
|
132
|
+
SYMMETRIC_KEY: "SYMMETRIC_KEY",
|
|
133
|
+
};
|
|
134
|
+
exports.KeyUsage = {
|
|
135
|
+
TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY",
|
|
136
|
+
TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY",
|
|
137
|
+
TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY",
|
|
138
|
+
TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION: "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION",
|
|
139
|
+
TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS",
|
|
140
|
+
TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY",
|
|
141
|
+
TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY",
|
|
142
|
+
TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS",
|
|
143
|
+
TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION",
|
|
144
|
+
TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER",
|
|
145
|
+
TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY",
|
|
146
|
+
TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY",
|
|
147
|
+
TR31_K2_TR34_ASYMMETRIC_KEY: "TR31_K2_TR34_ASYMMETRIC_KEY",
|
|
148
|
+
TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT: "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT",
|
|
149
|
+
TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY",
|
|
150
|
+
TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY",
|
|
151
|
+
TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY",
|
|
152
|
+
TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY",
|
|
153
|
+
TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY",
|
|
154
|
+
TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE: "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE",
|
|
155
|
+
TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY",
|
|
156
|
+
TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY",
|
|
157
|
+
};
|
|
158
|
+
exports.KeyCheckValueAlgorithm = {
|
|
159
|
+
ANSI_X9_24: "ANSI_X9_24",
|
|
160
|
+
CMAC: "CMAC",
|
|
161
|
+
};
|
|
162
|
+
exports.KeyOrigin = {
|
|
163
|
+
AWS_PAYMENT_CRYPTOGRAPHY: "AWS_PAYMENT_CRYPTOGRAPHY",
|
|
164
|
+
EXTERNAL: "EXTERNAL",
|
|
165
|
+
};
|
|
166
|
+
exports.KeyState = {
|
|
167
|
+
CREATE_COMPLETE: "CREATE_COMPLETE",
|
|
168
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
169
|
+
DELETE_COMPLETE: "DELETE_COMPLETE",
|
|
170
|
+
DELETE_PENDING: "DELETE_PENDING",
|
|
171
|
+
};
|
|
172
|
+
exports.Tr34KeyBlockFormat = {
|
|
173
|
+
X9_TR34_2012: "X9_TR34_2012",
|
|
174
|
+
};
|
|
175
|
+
var ExportKeyMaterial;
|
|
176
|
+
(function (ExportKeyMaterial) {
|
|
177
|
+
ExportKeyMaterial.visit = (value, visitor) => {
|
|
178
|
+
if (value.Tr31KeyBlock !== undefined)
|
|
179
|
+
return visitor.Tr31KeyBlock(value.Tr31KeyBlock);
|
|
180
|
+
if (value.Tr34KeyBlock !== undefined)
|
|
181
|
+
return visitor.Tr34KeyBlock(value.Tr34KeyBlock);
|
|
182
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
183
|
+
};
|
|
184
|
+
})(ExportKeyMaterial = exports.ExportKeyMaterial || (exports.ExportKeyMaterial = {}));
|
|
185
|
+
exports.WrappedKeyMaterialFormat = {
|
|
186
|
+
KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
|
|
187
|
+
TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
|
|
188
|
+
TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
|
|
189
|
+
};
|
|
190
|
+
exports.KeyMaterialType = {
|
|
191
|
+
ROOT_PUBLIC_KEY_CERTIFICATE: "ROOT_PUBLIC_KEY_CERTIFICATE",
|
|
192
|
+
TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
|
|
193
|
+
TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
|
|
194
|
+
TRUSTED_PUBLIC_KEY_CERTIFICATE: "TRUSTED_PUBLIC_KEY_CERTIFICATE",
|
|
195
|
+
};
|
|
196
|
+
var ImportKeyMaterial;
|
|
197
|
+
(function (ImportKeyMaterial) {
|
|
198
|
+
ImportKeyMaterial.visit = (value, visitor) => {
|
|
199
|
+
if (value.RootCertificatePublicKey !== undefined)
|
|
200
|
+
return visitor.RootCertificatePublicKey(value.RootCertificatePublicKey);
|
|
201
|
+
if (value.TrustedCertificatePublicKey !== undefined)
|
|
202
|
+
return visitor.TrustedCertificatePublicKey(value.TrustedCertificatePublicKey);
|
|
203
|
+
if (value.Tr31KeyBlock !== undefined)
|
|
204
|
+
return visitor.Tr31KeyBlock(value.Tr31KeyBlock);
|
|
205
|
+
if (value.Tr34KeyBlock !== undefined)
|
|
206
|
+
return visitor.Tr34KeyBlock(value.Tr34KeyBlock);
|
|
207
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
208
|
+
};
|
|
209
|
+
})(ImportKeyMaterial = exports.ImportKeyMaterial || (exports.ImportKeyMaterial = {}));
|
|
210
|
+
const ExportTr34KeyBlockFilterSensitiveLog = (obj) => ({
|
|
211
|
+
...obj,
|
|
212
|
+
...(obj.WrappingKeyCertificate && { WrappingKeyCertificate: smithy_client_1.SENSITIVE_STRING }),
|
|
213
|
+
});
|
|
214
|
+
exports.ExportTr34KeyBlockFilterSensitiveLog = ExportTr34KeyBlockFilterSensitiveLog;
|
|
215
|
+
const ExportKeyMaterialFilterSensitiveLog = (obj) => {
|
|
216
|
+
if (obj.Tr31KeyBlock !== undefined)
|
|
217
|
+
return { Tr31KeyBlock: obj.Tr31KeyBlock };
|
|
218
|
+
if (obj.Tr34KeyBlock !== undefined)
|
|
219
|
+
return { Tr34KeyBlock: (0, exports.ExportTr34KeyBlockFilterSensitiveLog)(obj.Tr34KeyBlock) };
|
|
220
|
+
if (obj.$unknown !== undefined)
|
|
221
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
222
|
+
};
|
|
223
|
+
exports.ExportKeyMaterialFilterSensitiveLog = ExportKeyMaterialFilterSensitiveLog;
|
|
224
|
+
const ExportKeyInputFilterSensitiveLog = (obj) => ({
|
|
225
|
+
...obj,
|
|
226
|
+
...(obj.KeyMaterial && { KeyMaterial: (0, exports.ExportKeyMaterialFilterSensitiveLog)(obj.KeyMaterial) }),
|
|
227
|
+
});
|
|
228
|
+
exports.ExportKeyInputFilterSensitiveLog = ExportKeyInputFilterSensitiveLog;
|
|
229
|
+
const WrappedKeyFilterSensitiveLog = (obj) => ({
|
|
230
|
+
...obj,
|
|
231
|
+
...(obj.KeyMaterial && { KeyMaterial: smithy_client_1.SENSITIVE_STRING }),
|
|
232
|
+
});
|
|
233
|
+
exports.WrappedKeyFilterSensitiveLog = WrappedKeyFilterSensitiveLog;
|
|
234
|
+
const ExportKeyOutputFilterSensitiveLog = (obj) => ({
|
|
235
|
+
...obj,
|
|
236
|
+
...(obj.WrappedKey && { WrappedKey: (0, exports.WrappedKeyFilterSensitiveLog)(obj.WrappedKey) }),
|
|
237
|
+
});
|
|
238
|
+
exports.ExportKeyOutputFilterSensitiveLog = ExportKeyOutputFilterSensitiveLog;
|
|
239
|
+
const GetParametersForExportOutputFilterSensitiveLog = (obj) => ({
|
|
240
|
+
...obj,
|
|
241
|
+
...(obj.SigningKeyCertificate && { SigningKeyCertificate: smithy_client_1.SENSITIVE_STRING }),
|
|
242
|
+
...(obj.SigningKeyCertificateChain && { SigningKeyCertificateChain: smithy_client_1.SENSITIVE_STRING }),
|
|
243
|
+
});
|
|
244
|
+
exports.GetParametersForExportOutputFilterSensitiveLog = GetParametersForExportOutputFilterSensitiveLog;
|
|
245
|
+
const GetParametersForImportOutputFilterSensitiveLog = (obj) => ({
|
|
246
|
+
...obj,
|
|
247
|
+
...(obj.WrappingKeyCertificate && { WrappingKeyCertificate: smithy_client_1.SENSITIVE_STRING }),
|
|
248
|
+
...(obj.WrappingKeyCertificateChain && { WrappingKeyCertificateChain: smithy_client_1.SENSITIVE_STRING }),
|
|
249
|
+
});
|
|
250
|
+
exports.GetParametersForImportOutputFilterSensitiveLog = GetParametersForImportOutputFilterSensitiveLog;
|
|
251
|
+
const GetPublicKeyCertificateOutputFilterSensitiveLog = (obj) => ({
|
|
252
|
+
...obj,
|
|
253
|
+
...(obj.KeyCertificate && { KeyCertificate: smithy_client_1.SENSITIVE_STRING }),
|
|
254
|
+
...(obj.KeyCertificateChain && { KeyCertificateChain: smithy_client_1.SENSITIVE_STRING }),
|
|
255
|
+
});
|
|
256
|
+
exports.GetPublicKeyCertificateOutputFilterSensitiveLog = GetPublicKeyCertificateOutputFilterSensitiveLog;
|
|
257
|
+
const RootCertificatePublicKeyFilterSensitiveLog = (obj) => ({
|
|
258
|
+
...obj,
|
|
259
|
+
...(obj.PublicKeyCertificate && { PublicKeyCertificate: smithy_client_1.SENSITIVE_STRING }),
|
|
260
|
+
});
|
|
261
|
+
exports.RootCertificatePublicKeyFilterSensitiveLog = RootCertificatePublicKeyFilterSensitiveLog;
|
|
262
|
+
const ImportTr34KeyBlockFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
...(obj.SigningKeyCertificate && { SigningKeyCertificate: smithy_client_1.SENSITIVE_STRING }),
|
|
265
|
+
});
|
|
266
|
+
exports.ImportTr34KeyBlockFilterSensitiveLog = ImportTr34KeyBlockFilterSensitiveLog;
|
|
267
|
+
const TrustedCertificatePublicKeyFilterSensitiveLog = (obj) => ({
|
|
268
|
+
...obj,
|
|
269
|
+
...(obj.PublicKeyCertificate && { PublicKeyCertificate: smithy_client_1.SENSITIVE_STRING }),
|
|
270
|
+
});
|
|
271
|
+
exports.TrustedCertificatePublicKeyFilterSensitiveLog = TrustedCertificatePublicKeyFilterSensitiveLog;
|
|
272
|
+
const ImportKeyMaterialFilterSensitiveLog = (obj) => {
|
|
273
|
+
if (obj.RootCertificatePublicKey !== undefined)
|
|
274
|
+
return { RootCertificatePublicKey: (0, exports.RootCertificatePublicKeyFilterSensitiveLog)(obj.RootCertificatePublicKey) };
|
|
275
|
+
if (obj.TrustedCertificatePublicKey !== undefined)
|
|
276
|
+
return {
|
|
277
|
+
TrustedCertificatePublicKey: (0, exports.TrustedCertificatePublicKeyFilterSensitiveLog)(obj.TrustedCertificatePublicKey),
|
|
278
|
+
};
|
|
279
|
+
if (obj.Tr31KeyBlock !== undefined)
|
|
280
|
+
return { Tr31KeyBlock: obj.Tr31KeyBlock };
|
|
281
|
+
if (obj.Tr34KeyBlock !== undefined)
|
|
282
|
+
return { Tr34KeyBlock: (0, exports.ImportTr34KeyBlockFilterSensitiveLog)(obj.Tr34KeyBlock) };
|
|
283
|
+
if (obj.$unknown !== undefined)
|
|
284
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
285
|
+
};
|
|
286
|
+
exports.ImportKeyMaterialFilterSensitiveLog = ImportKeyMaterialFilterSensitiveLog;
|
|
287
|
+
const ImportKeyInputFilterSensitiveLog = (obj) => ({
|
|
288
|
+
...obj,
|
|
289
|
+
...(obj.KeyMaterial && { KeyMaterial: (0, exports.ImportKeyMaterialFilterSensitiveLog)(obj.KeyMaterial) }),
|
|
290
|
+
});
|
|
291
|
+
exports.ImportKeyInputFilterSensitiveLog = ImportKeyInputFilterSensitiveLog;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAliases = void 0;
|
|
4
|
+
const ListAliasesCommand_1 = require("../commands/ListAliasesCommand");
|
|
5
|
+
const PaymentCryptographyClient_1 = require("../PaymentCryptographyClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListAliasesCommand_1.ListAliasesCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListAliases(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof PaymentCryptographyClient_1.PaymentCryptographyClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected PaymentCryptography | PaymentCryptographyClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListAliases = paginateListAliases;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListKeys = void 0;
|
|
4
|
+
const ListKeysCommand_1 = require("../commands/ListKeysCommand");
|
|
5
|
+
const PaymentCryptographyClient_1 = require("../PaymentCryptographyClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListKeysCommand_1.ListKeysCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListKeys(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof PaymentCryptographyClient_1.PaymentCryptographyClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected PaymentCryptography | PaymentCryptographyClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListKeys = paginateListKeys;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListTagsForResource = void 0;
|
|
4
|
+
const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
|
|
5
|
+
const PaymentCryptographyClient_1 = require("../PaymentCryptographyClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListTagsForResource(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof PaymentCryptographyClient_1.PaymentCryptographyClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected PaymentCryptography | PaymentCryptographyClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListTagsForResource = paginateListTagsForResource;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListAliasesPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListKeysPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListTagsForResourcePaginator"), exports);
|