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