tencentcloud-sdk-nodejs-kms 4.1.19 → 4.1.65
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.
|
@@ -3,6 +3,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
3
3
|
constructor(clientConfig) {
|
|
4
4
|
super("kms.tencentcloudapi.com", "2019-01-18", clientConfig);
|
|
5
5
|
}
|
|
6
|
+
async ListDataKeys(req, cb) {
|
|
7
|
+
return this.request("ListDataKeys", req, cb);
|
|
8
|
+
}
|
|
6
9
|
async PostQuantumCryptoVerify(req, cb) {
|
|
7
10
|
return this.request("PostQuantumCryptoVerify", req, cb);
|
|
8
11
|
}
|
|
@@ -21,6 +24,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
21
24
|
async ImportKeyMaterial(req, cb) {
|
|
22
25
|
return this.request("ImportKeyMaterial", req, cb);
|
|
23
26
|
}
|
|
27
|
+
async DescribeDataKey(req, cb) {
|
|
28
|
+
return this.request("DescribeDataKey", req, cb);
|
|
29
|
+
}
|
|
24
30
|
async GetPublicKey(req, cb) {
|
|
25
31
|
return this.request("GetPublicKey", req, cb);
|
|
26
32
|
}
|
|
@@ -33,11 +39,14 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
33
39
|
async GetServiceStatus(req, cb) {
|
|
34
40
|
return this.request("GetServiceStatus", req, cb);
|
|
35
41
|
}
|
|
42
|
+
async GetDataKeyPlaintext(req, cb) {
|
|
43
|
+
return this.request("GetDataKeyPlaintext", req, cb);
|
|
44
|
+
}
|
|
36
45
|
async AsymmetricSm2Decrypt(req, cb) {
|
|
37
46
|
return this.request("AsymmetricSm2Decrypt", req, cb);
|
|
38
47
|
}
|
|
39
|
-
async
|
|
40
|
-
return this.request("
|
|
48
|
+
async PostQuantumCryptoEncrypt(req, cb) {
|
|
49
|
+
return this.request("PostQuantumCryptoEncrypt", req, cb);
|
|
41
50
|
}
|
|
42
51
|
async CancelKeyDeletion(req, cb) {
|
|
43
52
|
return this.request("CancelKeyDeletion", req, cb);
|
|
@@ -45,17 +54,35 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
45
54
|
async GetKeyRotationStatus(req, cb) {
|
|
46
55
|
return this.request("GetKeyRotationStatus", req, cb);
|
|
47
56
|
}
|
|
57
|
+
async ScheduleDataKeyDeletion(req, cb) {
|
|
58
|
+
return this.request("ScheduleDataKeyDeletion", req, cb);
|
|
59
|
+
}
|
|
48
60
|
async DescribeWhiteBoxKeyDetails(req, cb) {
|
|
49
61
|
return this.request("DescribeWhiteBoxKeyDetails", req, cb);
|
|
50
62
|
}
|
|
51
63
|
async BindCloudResource(req, cb) {
|
|
52
64
|
return this.request("BindCloudResource", req, cb);
|
|
53
65
|
}
|
|
66
|
+
async OverwriteWhiteBoxDeviceFingerprints(req, cb) {
|
|
67
|
+
return this.request("OverwriteWhiteBoxDeviceFingerprints", req, cb);
|
|
68
|
+
}
|
|
54
69
|
async ArchiveKey(req, cb) {
|
|
55
70
|
return this.request("ArchiveKey", req, cb);
|
|
56
71
|
}
|
|
57
|
-
async
|
|
58
|
-
return this.request("
|
|
72
|
+
async UpdateDataKeyDescription(req, cb) {
|
|
73
|
+
return this.request("UpdateDataKeyDescription", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async UpdateDataKeyName(req, cb) {
|
|
76
|
+
return this.request("UpdateDataKeyName", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async SignByAsymmetricKey(req, cb) {
|
|
79
|
+
return this.request("SignByAsymmetricKey", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async DisableKeys(req, cb) {
|
|
82
|
+
return this.request("DisableKeys", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async CancelDataKeyDeletion(req, cb) {
|
|
85
|
+
return this.request("CancelDataKeyDeletion", req, cb);
|
|
59
86
|
}
|
|
60
87
|
async ReEncrypt(req, cb) {
|
|
61
88
|
return this.request("ReEncrypt", req, cb);
|
|
@@ -75,11 +102,20 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
75
102
|
async GenerateRandom(req, cb) {
|
|
76
103
|
return this.request("GenerateRandom", req, cb);
|
|
77
104
|
}
|
|
105
|
+
async GetDataKeyCiphertextBlob(req, cb) {
|
|
106
|
+
return this.request("GetDataKeyCiphertextBlob", req, cb);
|
|
107
|
+
}
|
|
78
108
|
async PostQuantumCryptoDecrypt(req, cb) {
|
|
79
109
|
return this.request("PostQuantumCryptoDecrypt", req, cb);
|
|
80
110
|
}
|
|
81
|
-
async
|
|
82
|
-
return this.request("
|
|
111
|
+
async VerifyByAsymmetricKey(req, cb) {
|
|
112
|
+
return this.request("VerifyByAsymmetricKey", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async EnableDataKeys(req, cb) {
|
|
115
|
+
return this.request("EnableDataKeys", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async ImportDataKey(req, cb) {
|
|
118
|
+
return this.request("ImportDataKey", req, cb);
|
|
83
119
|
}
|
|
84
120
|
async CreateKey(req, cb) {
|
|
85
121
|
return this.request("CreateKey", req, cb);
|
|
@@ -96,12 +132,18 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
96
132
|
async DisableWhiteBoxKeys(req, cb) {
|
|
97
133
|
return this.request("DisableWhiteBoxKeys", req, cb);
|
|
98
134
|
}
|
|
99
|
-
async
|
|
100
|
-
return this.request("
|
|
135
|
+
async DisableDataKey(req, cb) {
|
|
136
|
+
return this.request("DisableDataKey", req, cb);
|
|
137
|
+
}
|
|
138
|
+
async DescribeDataKeys(req, cb) {
|
|
139
|
+
return this.request("DescribeDataKeys", req, cb);
|
|
101
140
|
}
|
|
102
141
|
async DisableKeyRotation(req, cb) {
|
|
103
142
|
return this.request("DisableKeyRotation", req, cb);
|
|
104
143
|
}
|
|
144
|
+
async ListKeyDetail(req, cb) {
|
|
145
|
+
return this.request("ListKeyDetail", req, cb);
|
|
146
|
+
}
|
|
105
147
|
async DisableWhiteBoxKey(req, cb) {
|
|
106
148
|
return this.request("DisableWhiteBoxKey", req, cb);
|
|
107
149
|
}
|
|
@@ -126,8 +168,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
126
168
|
async CreateWhiteBoxKey(req, cb) {
|
|
127
169
|
return this.request("CreateWhiteBoxKey", req, cb);
|
|
128
170
|
}
|
|
129
|
-
async
|
|
130
|
-
return this.request("
|
|
171
|
+
async EnableDataKey(req, cb) {
|
|
172
|
+
return this.request("EnableDataKey", req, cb);
|
|
131
173
|
}
|
|
132
174
|
async EnableWhiteBoxKey(req, cb) {
|
|
133
175
|
return this.request("EnableWhiteBoxKey", req, cb);
|
|
@@ -147,8 +189,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
147
189
|
async UpdateKeyDescription(req, cb) {
|
|
148
190
|
return this.request("UpdateKeyDescription", req, cb);
|
|
149
191
|
}
|
|
150
|
-
async
|
|
151
|
-
return this.request("
|
|
192
|
+
async CancelKeyArchive(req, cb) {
|
|
193
|
+
return this.request("CancelKeyArchive", req, cb);
|
|
152
194
|
}
|
|
153
195
|
async DescribeWhiteBoxDecryptKey(req, cb) {
|
|
154
196
|
return this.request("DescribeWhiteBoxDecryptKey", req, cb);
|
|
@@ -159,7 +201,10 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
159
201
|
async GetRegions(req, cb) {
|
|
160
202
|
return this.request("GetRegions", req, cb);
|
|
161
203
|
}
|
|
162
|
-
async
|
|
163
|
-
return this.request("
|
|
204
|
+
async ListDataKeyDetail(req, cb) {
|
|
205
|
+
return this.request("ListDataKeyDetail", req, cb);
|
|
206
|
+
}
|
|
207
|
+
async DisableDataKeys(req, cb) {
|
|
208
|
+
return this.request("DisableDataKeys", req, cb);
|
|
164
209
|
}
|
|
165
210
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { UpdateAliasRequest, EnableWhiteBoxKeyRequest, AsymmetricRsaDecryptRequest, EnableKeyRotationRequest, DescribeWhiteBoxKeyDetailsResponse, CreateKeyRequest, DisableWhiteBoxKeyResponse, DisableKeyResponse, DescribeWhiteBoxServiceStatusRequest,
|
|
2
|
+
import { UpdateAliasRequest, EnableWhiteBoxKeyRequest, AsymmetricRsaDecryptRequest, EnableKeyRotationRequest, DescribeWhiteBoxKeyDetailsResponse, CreateKeyRequest, DisableWhiteBoxKeyResponse, DisableKeyResponse, DescribeWhiteBoxServiceStatusRequest, UpdateDataKeyDescriptionRequest, DescribeDataKeyResponse, DisableDataKeyResponse, DescribeKeyRequest, DescribeDataKeysRequest, ListAlgorithmsResponse, DisableKeysResponse, EnableDataKeyResponse, DescribeWhiteBoxKeyResponse, UpdateKeyDescriptionResponse, DescribeWhiteBoxServiceStatusResponse, ScheduleDataKeyDeletionResponse, EnableKeyRequest, GetKeyRotationStatusRequest, ListAlgorithmsRequest, ListKeyDetailResponse, GenerateDataKeyRequest, UpdateAliasResponse, ScheduleKeyDeletionResponse, PostQuantumCryptoVerifyRequest, GenerateRandomResponse, UpdateDataKeyNameRequest, ScheduleDataKeyDeletionRequest, DescribeKeysRequest, GetPublicKeyRequest, GetServiceStatusRequest, EnableWhiteBoxKeysResponse, ArchiveKeyResponse, VerifyByAsymmetricKeyResponse, DescribeDataKeysResponse, DescribeWhiteBoxKeyRequest, GetParametersForImportResponse, DecryptResponse, ListDataKeyDetailResponse, CreateWhiteBoxKeyResponse, ImportKeyMaterialRequest, DeleteImportedKeyMaterialResponse, EnableKeysRequest, EnableWhiteBoxKeysRequest, EncryptByWhiteBoxResponse, UpdateDataKeyNameResponse, DescribeKeysResponse, EnableWhiteBoxKeyResponse, ListDataKeysResponse, ReEncryptRequest, ListKeysResponse, DescribeDataKeyRequest, AsymmetricSm2DecryptResponse, DisableKeyRotationResponse, VerifyByAsymmetricKeyRequest, DisableWhiteBoxKeysRequest, ImportDataKeyRequest, ListKeyDetailRequest, DeleteWhiteBoxKeyRequest, GetRegionsResponse, UpdateDataKeyDescriptionResponse, CancelKeyDeletionRequest, EnableDataKeysResponse, GenerateDataKeyResponse, EnableDataKeysRequest, CreateWhiteBoxKeyRequest, GetDataKeyPlaintextResponse, DisableDataKeyRequest, OverwriteWhiteBoxDeviceFingerprintsResponse, DisableWhiteBoxKeysResponse, ArchiveKeyRequest, GetParametersForImportRequest, CreateKeyResponse, ReEncryptResponse, EncryptResponse, GetDataKeyPlaintextRequest, GetDataKeyCiphertextBlobRequest, DeleteImportedKeyMaterialRequest, EnableKeyResponse, ImportDataKeyResponse, GetServiceStatusResponse, GetKeyRotationStatusResponse, EncryptRequest, AsymmetricSm2DecryptRequest, ListDataKeysRequest, DeleteWhiteBoxKeyResponse, ListDataKeyDetailRequest, CancelDataKeyDeletionResponse, ListKeysRequest, DescribeWhiteBoxDecryptKeyRequest, CancelKeyArchiveResponse, GetPublicKeyResponse, DecryptRequest, DescribeWhiteBoxKeyDetailsRequest, PostQuantumCryptoSignRequest, PostQuantumCryptoDecryptRequest, AsymmetricRsaDecryptResponse, CancelKeyDeletionResponse, DisableKeysRequest, DisableWhiteBoxKeyRequest, UnbindCloudResourceRequest, OverwriteWhiteBoxDeviceFingerprintsRequest, EnableKeyRotationResponse, BindCloudResourceResponse, EnableKeysResponse, SignByAsymmetricKeyRequest, DescribeWhiteBoxDeviceFingerprintsRequest, GetRegionsRequest, PostQuantumCryptoEncryptResponse, EncryptByWhiteBoxRequest, GenerateRandomRequest, DisableDataKeysResponse, ScheduleKeyDeletionRequest, CancelDataKeyDeletionRequest, PostQuantumCryptoEncryptRequest, DisableKeyRequest, ImportKeyMaterialResponse, EnableDataKeyRequest, BindCloudResourceRequest, GetDataKeyCiphertextBlobResponse, PostQuantumCryptoSignResponse, SignByAsymmetricKeyResponse, PostQuantumCryptoVerifyResponse, DescribeWhiteBoxDecryptKeyResponse, DescribeWhiteBoxDeviceFingerprintsResponse, PostQuantumCryptoDecryptResponse, DisableDataKeysRequest, UpdateKeyDescriptionRequest, UnbindCloudResourceResponse, DescribeKeyResponse, CancelKeyArchiveRequest, DisableKeyRotationRequest } from "./kms_models";
|
|
3
3
|
/**
|
|
4
4
|
* kms client
|
|
5
5
|
* @class
|
|
6
6
|
*/
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 用于查询数据密钥的列表
|
|
11
|
+
*/
|
|
12
|
+
ListDataKeys(req: ListDataKeysRequest, cb?: (error: string, rep: ListDataKeysResponse) => void): Promise<ListDataKeysResponse>;
|
|
9
13
|
/**
|
|
10
14
|
* 使用后量子密码算法密钥对签名进行验证。
|
|
11
15
|
*/
|
|
@@ -31,6 +35,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
31
35
|
只有Enabled 和 PendingImport状态的CMK可以导入密钥材料。
|
|
32
36
|
*/
|
|
33
37
|
ImportKeyMaterial(req: ImportKeyMaterialRequest, cb?: (error: string, rep: ImportKeyMaterialResponse) => void): Promise<ImportKeyMaterialResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* 获取数据密钥的详情
|
|
40
|
+
*/
|
|
41
|
+
DescribeDataKey(req: DescribeDataKeyRequest, cb?: (error: string, rep: DescribeDataKeyResponse) => void): Promise<DescribeDataKeyResponse>;
|
|
34
42
|
/**
|
|
35
43
|
* 该接口用于获取非对称密钥的公钥信息,可用于本地数据加密或验签。只有处于Enabled状态的非对称密钥才可能获取公钥。
|
|
36
44
|
*/
|
|
@@ -47,15 +55,18 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
47
55
|
* 用于查询该用户是否已开通KMS服务
|
|
48
56
|
*/
|
|
49
57
|
GetServiceStatus(req?: GetServiceStatusRequest, cb?: (error: string, rep: GetServiceStatusResponse) => void): Promise<GetServiceStatusResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* 获取数据密钥明文
|
|
60
|
+
*/
|
|
61
|
+
GetDataKeyPlaintext(req: GetDataKeyPlaintextRequest, cb?: (error: string, rep: GetDataKeyPlaintextResponse) => void): Promise<GetDataKeyPlaintextResponse>;
|
|
50
62
|
/**
|
|
51
63
|
* 使用指定的SM2非对称密钥的私钥进行数据解密,密文必须是使用对应公钥加密的。处于Enabled 状态的非对称密钥才能进行解密操作。传入的密文的长度不能超过256字节。
|
|
52
64
|
*/
|
|
53
65
|
AsymmetricSm2Decrypt(req: AsymmetricSm2DecryptRequest, cb?: (error: string, rep: AsymmetricSm2DecryptResponse) => void): Promise<AsymmetricSm2DecryptResponse>;
|
|
54
66
|
/**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
SignByAsymmetricKey(req: SignByAsymmetricKeyRequest, cb?: (error: string, rep: SignByAsymmetricKeyResponse) => void): Promise<SignByAsymmetricKeyResponse>;
|
|
67
|
+
* 本接口使用后量子密码算法密钥,可加密最多为4KB任意数据,可用于加密数据库密码,RSA Key,或其它较小的敏感信息。对于应用的数据加密,使用GenerateDataKey生成的DataKey进行本地数据的加解密操作。
|
|
68
|
+
*/
|
|
69
|
+
PostQuantumCryptoEncrypt(req: PostQuantumCryptoEncryptRequest, cb?: (error: string, rep: PostQuantumCryptoEncryptResponse) => void): Promise<PostQuantumCryptoEncryptResponse>;
|
|
59
70
|
/**
|
|
60
71
|
* 取消CMK的计划删除操作
|
|
61
72
|
*/
|
|
@@ -64,6 +75,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
64
75
|
* 查询指定的CMK是否开启了密钥轮换功能。
|
|
65
76
|
*/
|
|
66
77
|
GetKeyRotationStatus(req: GetKeyRotationStatusRequest, cb?: (error: string, rep: GetKeyRotationStatusResponse) => void): Promise<GetKeyRotationStatusResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* 计划删除数据密钥
|
|
80
|
+
*/
|
|
81
|
+
ScheduleDataKeyDeletion(req: ScheduleDataKeyDeletionRequest, cb?: (error: string, rep: ScheduleDataKeyDeletionResponse) => void): Promise<ScheduleDataKeyDeletionResponse>;
|
|
67
82
|
/**
|
|
68
83
|
* 获取白盒密钥列表
|
|
69
84
|
*/
|
|
@@ -72,14 +87,35 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
72
87
|
* 记录当前key被哪个云产品的那个资源所使用。如果当前key设置了自动过期,则取消该设置,确保当前key不会自动失效。如果当前关联关系已经创建,也返回成功。
|
|
73
88
|
*/
|
|
74
89
|
BindCloudResource(req: BindCloudResourceRequest, cb?: (error: string, rep: BindCloudResourceResponse) => void): Promise<BindCloudResourceResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* 覆盖指定密钥的设备指纹信息
|
|
92
|
+
*/
|
|
93
|
+
OverwriteWhiteBoxDeviceFingerprints(req: OverwriteWhiteBoxDeviceFingerprintsRequest, cb?: (error: string, rep: OverwriteWhiteBoxDeviceFingerprintsResponse) => void): Promise<OverwriteWhiteBoxDeviceFingerprintsResponse>;
|
|
75
94
|
/**
|
|
76
95
|
* 对密钥进行归档,被归档的密钥只能用于解密,不能加密
|
|
77
96
|
*/
|
|
78
97
|
ArchiveKey(req: ArchiveKeyRequest, cb?: (error: string, rep: ArchiveKeyResponse) => void): Promise<ArchiveKeyResponse>;
|
|
79
98
|
/**
|
|
80
|
-
*
|
|
99
|
+
* 修改数据密钥描述
|
|
81
100
|
*/
|
|
82
|
-
|
|
101
|
+
UpdateDataKeyDescription(req: UpdateDataKeyDescriptionRequest, cb?: (error: string, rep: UpdateDataKeyDescriptionResponse) => void): Promise<UpdateDataKeyDescriptionResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* 修改数据密钥名称
|
|
104
|
+
*/
|
|
105
|
+
UpdateDataKeyName(req: UpdateDataKeyNameRequest, cb?: (error: string, rep: UpdateDataKeyNameResponse) => void): Promise<UpdateDataKeyNameResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* 非对称密钥签名。
|
|
108
|
+
注意:只有 KeyUsage 为 ASYMMETRIC_SIGN_VERIFY_SM2、ASYMMETRIC_SIGN_VERIFY_ECC 或其他支持的 ASYMMETRIC_SIGN_VERIFY_${ALGORITHM} 的密钥才可以使用签名功能。
|
|
109
|
+
*/
|
|
110
|
+
SignByAsymmetricKey(req: SignByAsymmetricKeyRequest, cb?: (error: string, rep: SignByAsymmetricKeyResponse) => void): Promise<SignByAsymmetricKeyResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* 该接口用于批量禁止CMK的使用。
|
|
113
|
+
*/
|
|
114
|
+
DisableKeys(req: DisableKeysRequest, cb?: (error: string, rep: DisableKeysResponse) => void): Promise<DisableKeysResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* 取消计划删除数据密钥
|
|
117
|
+
*/
|
|
118
|
+
CancelDataKeyDeletion(req: CancelDataKeyDeletionRequest, cb?: (error: string, rep: CancelDataKeyDeletionResponse) => void): Promise<CancelDataKeyDeletionResponse>;
|
|
83
119
|
/**
|
|
84
120
|
* 使用指定CMK对密文重新加密。
|
|
85
121
|
*/
|
|
@@ -104,14 +140,26 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
104
140
|
* 随机数生成接口。
|
|
105
141
|
*/
|
|
106
142
|
GenerateRandom(req: GenerateRandomRequest, cb?: (error: string, rep: GenerateRandomResponse) => void): Promise<GenerateRandomResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* 下载数据密钥密文
|
|
145
|
+
*/
|
|
146
|
+
GetDataKeyCiphertextBlob(req: GetDataKeyCiphertextBlobRequest, cb?: (error: string, rep: GetDataKeyCiphertextBlobResponse) => void): Promise<GetDataKeyCiphertextBlobResponse>;
|
|
107
147
|
/**
|
|
108
148
|
* 本接口使用后量子密码算法密钥,解密密文,并得到明文数据。
|
|
109
149
|
*/
|
|
110
150
|
PostQuantumCryptoDecrypt(req: PostQuantumCryptoDecryptRequest, cb?: (error: string, rep: PostQuantumCryptoDecryptResponse) => void): Promise<PostQuantumCryptoDecryptResponse>;
|
|
111
151
|
/**
|
|
112
|
-
*
|
|
152
|
+
* 使用非对称密钥验签
|
|
113
153
|
*/
|
|
114
|
-
|
|
154
|
+
VerifyByAsymmetricKey(req: VerifyByAsymmetricKeyRequest, cb?: (error: string, rep: VerifyByAsymmetricKeyResponse) => void): Promise<VerifyByAsymmetricKeyResponse>;
|
|
155
|
+
/**
|
|
156
|
+
* 批量启用数据密钥
|
|
157
|
+
*/
|
|
158
|
+
EnableDataKeys(req: EnableDataKeysRequest, cb?: (error: string, rep: EnableDataKeysResponse) => void): Promise<EnableDataKeysResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* 数据密钥导入接口,并托管到KMS
|
|
161
|
+
*/
|
|
162
|
+
ImportDataKey(req: ImportDataKeyRequest, cb?: (error: string, rep: ImportDataKeyResponse) => void): Promise<ImportDataKeyResponse>;
|
|
115
163
|
/**
|
|
116
164
|
* 创建用户管理数据密钥的主密钥CMK(Custom Master Key)。
|
|
117
165
|
*/
|
|
@@ -133,13 +181,21 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
133
181
|
*/
|
|
134
182
|
DisableWhiteBoxKeys(req: DisableWhiteBoxKeysRequest, cb?: (error: string, rep: DisableWhiteBoxKeysResponse) => void): Promise<DisableWhiteBoxKeysResponse>;
|
|
135
183
|
/**
|
|
136
|
-
*
|
|
184
|
+
* 禁用数据密钥
|
|
137
185
|
*/
|
|
138
|
-
|
|
186
|
+
DisableDataKey(req: DisableDataKeyRequest, cb?: (error: string, rep: DisableDataKeyResponse) => void): Promise<DisableDataKeyResponse>;
|
|
187
|
+
/**
|
|
188
|
+
* 返回数据密钥属性信息列表
|
|
189
|
+
*/
|
|
190
|
+
DescribeDataKeys(req: DescribeDataKeysRequest, cb?: (error: string, rep: DescribeDataKeysResponse) => void): Promise<DescribeDataKeysResponse>;
|
|
139
191
|
/**
|
|
140
192
|
* 对指定的CMK禁止密钥轮换功能。
|
|
141
193
|
*/
|
|
142
194
|
DisableKeyRotation(req: DisableKeyRotationRequest, cb?: (error: string, rep: DisableKeyRotationResponse) => void): Promise<DisableKeyRotationResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* 根据指定Offset和Limit获取主密钥列表详情。
|
|
197
|
+
*/
|
|
198
|
+
ListKeyDetail(req: ListKeyDetailRequest, cb?: (error: string, rep: ListKeyDetailResponse) => void): Promise<ListKeyDetailResponse>;
|
|
143
199
|
/**
|
|
144
200
|
* 禁用白盒密钥
|
|
145
201
|
*/
|
|
@@ -173,9 +229,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
173
229
|
*/
|
|
174
230
|
CreateWhiteBoxKey(req: CreateWhiteBoxKeyRequest, cb?: (error: string, rep: CreateWhiteBoxKeyResponse) => void): Promise<CreateWhiteBoxKeyResponse>;
|
|
175
231
|
/**
|
|
176
|
-
*
|
|
232
|
+
* 启用数据密钥
|
|
177
233
|
*/
|
|
178
|
-
|
|
234
|
+
EnableDataKey(req: EnableDataKeyRequest, cb?: (error: string, rep: EnableDataKeyResponse) => void): Promise<EnableDataKeyResponse>;
|
|
179
235
|
/**
|
|
180
236
|
* 启用白盒密钥
|
|
181
237
|
*/
|
|
@@ -201,9 +257,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
201
257
|
*/
|
|
202
258
|
UpdateKeyDescription(req: UpdateKeyDescriptionRequest, cb?: (error: string, rep: UpdateKeyDescriptionResponse) => void): Promise<UpdateKeyDescriptionResponse>;
|
|
203
259
|
/**
|
|
204
|
-
*
|
|
260
|
+
* 取消密钥归档,取消后密钥的状态变为Enabled。
|
|
205
261
|
*/
|
|
206
|
-
|
|
262
|
+
CancelKeyArchive(req: CancelKeyArchiveRequest, cb?: (error: string, rep: CancelKeyArchiveResponse) => void): Promise<CancelKeyArchiveResponse>;
|
|
207
263
|
/**
|
|
208
264
|
* 获取白盒解密密钥
|
|
209
265
|
*/
|
|
@@ -217,7 +273,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
217
273
|
*/
|
|
218
274
|
GetRegions(req?: GetRegionsRequest, cb?: (error: string, rep: GetRegionsResponse) => void): Promise<GetRegionsResponse>;
|
|
219
275
|
/**
|
|
220
|
-
*
|
|
276
|
+
* 根据指定Offset和Limit获取数据密钥列表详情。
|
|
221
277
|
*/
|
|
222
|
-
|
|
278
|
+
ListDataKeyDetail(req: ListDataKeyDetailRequest, cb?: (error: string, rep: ListDataKeyDetailResponse) => void): Promise<ListDataKeyDetailResponse>;
|
|
279
|
+
/**
|
|
280
|
+
* 批量禁用数据密钥
|
|
281
|
+
*/
|
|
282
|
+
DisableDataKeys(req: DisableDataKeysRequest, cb?: (error: string, rep: DisableDataKeysResponse) => void): Promise<DisableDataKeysResponse>;
|
|
223
283
|
}
|
|
@@ -28,6 +28,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
28
28
|
constructor(clientConfig) {
|
|
29
29
|
super("kms.tencentcloudapi.com", "2019-01-18", clientConfig);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* 用于查询数据密钥的列表
|
|
33
|
+
*/
|
|
34
|
+
async ListDataKeys(req, cb) {
|
|
35
|
+
return this.request("ListDataKeys", req, cb);
|
|
36
|
+
}
|
|
31
37
|
/**
|
|
32
38
|
* 使用后量子密码算法密钥对签名进行验证。
|
|
33
39
|
*/
|
|
@@ -65,6 +71,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
65
71
|
async ImportKeyMaterial(req, cb) {
|
|
66
72
|
return this.request("ImportKeyMaterial", req, cb);
|
|
67
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* 获取数据密钥的详情
|
|
76
|
+
*/
|
|
77
|
+
async DescribeDataKey(req, cb) {
|
|
78
|
+
return this.request("DescribeDataKey", req, cb);
|
|
79
|
+
}
|
|
68
80
|
/**
|
|
69
81
|
* 该接口用于获取非对称密钥的公钥信息,可用于本地数据加密或验签。只有处于Enabled状态的非对称密钥才可能获取公钥。
|
|
70
82
|
*/
|
|
@@ -89,6 +101,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
89
101
|
async GetServiceStatus(req, cb) {
|
|
90
102
|
return this.request("GetServiceStatus", req, cb);
|
|
91
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* 获取数据密钥明文
|
|
106
|
+
*/
|
|
107
|
+
async GetDataKeyPlaintext(req, cb) {
|
|
108
|
+
return this.request("GetDataKeyPlaintext", req, cb);
|
|
109
|
+
}
|
|
92
110
|
/**
|
|
93
111
|
* 使用指定的SM2非对称密钥的私钥进行数据解密,密文必须是使用对应公钥加密的。处于Enabled 状态的非对称密钥才能进行解密操作。传入的密文的长度不能超过256字节。
|
|
94
112
|
*/
|
|
@@ -96,11 +114,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
96
114
|
return this.request("AsymmetricSm2Decrypt", req, cb);
|
|
97
115
|
}
|
|
98
116
|
/**
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return this.request("SignByAsymmetricKey", req, cb);
|
|
117
|
+
* 本接口使用后量子密码算法密钥,可加密最多为4KB任意数据,可用于加密数据库密码,RSA Key,或其它较小的敏感信息。对于应用的数据加密,使用GenerateDataKey生成的DataKey进行本地数据的加解密操作。
|
|
118
|
+
*/
|
|
119
|
+
async PostQuantumCryptoEncrypt(req, cb) {
|
|
120
|
+
return this.request("PostQuantumCryptoEncrypt", req, cb);
|
|
104
121
|
}
|
|
105
122
|
/**
|
|
106
123
|
* 取消CMK的计划删除操作
|
|
@@ -114,6 +131,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
114
131
|
async GetKeyRotationStatus(req, cb) {
|
|
115
132
|
return this.request("GetKeyRotationStatus", req, cb);
|
|
116
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* 计划删除数据密钥
|
|
136
|
+
*/
|
|
137
|
+
async ScheduleDataKeyDeletion(req, cb) {
|
|
138
|
+
return this.request("ScheduleDataKeyDeletion", req, cb);
|
|
139
|
+
}
|
|
117
140
|
/**
|
|
118
141
|
* 获取白盒密钥列表
|
|
119
142
|
*/
|
|
@@ -126,6 +149,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
126
149
|
async BindCloudResource(req, cb) {
|
|
127
150
|
return this.request("BindCloudResource", req, cb);
|
|
128
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* 覆盖指定密钥的设备指纹信息
|
|
154
|
+
*/
|
|
155
|
+
async OverwriteWhiteBoxDeviceFingerprints(req, cb) {
|
|
156
|
+
return this.request("OverwriteWhiteBoxDeviceFingerprints", req, cb);
|
|
157
|
+
}
|
|
129
158
|
/**
|
|
130
159
|
* 对密钥进行归档,被归档的密钥只能用于解密,不能加密
|
|
131
160
|
*/
|
|
@@ -133,10 +162,35 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
133
162
|
return this.request("ArchiveKey", req, cb);
|
|
134
163
|
}
|
|
135
164
|
/**
|
|
136
|
-
*
|
|
165
|
+
* 修改数据密钥描述
|
|
137
166
|
*/
|
|
138
|
-
async
|
|
139
|
-
return this.request("
|
|
167
|
+
async UpdateDataKeyDescription(req, cb) {
|
|
168
|
+
return this.request("UpdateDataKeyDescription", req, cb);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* 修改数据密钥名称
|
|
172
|
+
*/
|
|
173
|
+
async UpdateDataKeyName(req, cb) {
|
|
174
|
+
return this.request("UpdateDataKeyName", req, cb);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 非对称密钥签名。
|
|
178
|
+
注意:只有 KeyUsage 为 ASYMMETRIC_SIGN_VERIFY_SM2、ASYMMETRIC_SIGN_VERIFY_ECC 或其他支持的 ASYMMETRIC_SIGN_VERIFY_${ALGORITHM} 的密钥才可以使用签名功能。
|
|
179
|
+
*/
|
|
180
|
+
async SignByAsymmetricKey(req, cb) {
|
|
181
|
+
return this.request("SignByAsymmetricKey", req, cb);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* 该接口用于批量禁止CMK的使用。
|
|
185
|
+
*/
|
|
186
|
+
async DisableKeys(req, cb) {
|
|
187
|
+
return this.request("DisableKeys", req, cb);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* 取消计划删除数据密钥
|
|
191
|
+
*/
|
|
192
|
+
async CancelDataKeyDeletion(req, cb) {
|
|
193
|
+
return this.request("CancelDataKeyDeletion", req, cb);
|
|
140
194
|
}
|
|
141
195
|
/**
|
|
142
196
|
* 使用指定CMK对密文重新加密。
|
|
@@ -174,6 +228,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
174
228
|
async GenerateRandom(req, cb) {
|
|
175
229
|
return this.request("GenerateRandom", req, cb);
|
|
176
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* 下载数据密钥密文
|
|
233
|
+
*/
|
|
234
|
+
async GetDataKeyCiphertextBlob(req, cb) {
|
|
235
|
+
return this.request("GetDataKeyCiphertextBlob", req, cb);
|
|
236
|
+
}
|
|
177
237
|
/**
|
|
178
238
|
* 本接口使用后量子密码算法密钥,解密密文,并得到明文数据。
|
|
179
239
|
*/
|
|
@@ -181,10 +241,22 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
181
241
|
return this.request("PostQuantumCryptoDecrypt", req, cb);
|
|
182
242
|
}
|
|
183
243
|
/**
|
|
184
|
-
*
|
|
244
|
+
* 使用非对称密钥验签
|
|
185
245
|
*/
|
|
186
|
-
async
|
|
187
|
-
return this.request("
|
|
246
|
+
async VerifyByAsymmetricKey(req, cb) {
|
|
247
|
+
return this.request("VerifyByAsymmetricKey", req, cb);
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* 批量启用数据密钥
|
|
251
|
+
*/
|
|
252
|
+
async EnableDataKeys(req, cb) {
|
|
253
|
+
return this.request("EnableDataKeys", req, cb);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* 数据密钥导入接口,并托管到KMS
|
|
257
|
+
*/
|
|
258
|
+
async ImportDataKey(req, cb) {
|
|
259
|
+
return this.request("ImportDataKey", req, cb);
|
|
188
260
|
}
|
|
189
261
|
/**
|
|
190
262
|
* 创建用户管理数据密钥的主密钥CMK(Custom Master Key)。
|
|
@@ -217,10 +289,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
217
289
|
return this.request("DisableWhiteBoxKeys", req, cb);
|
|
218
290
|
}
|
|
219
291
|
/**
|
|
220
|
-
*
|
|
292
|
+
* 禁用数据密钥
|
|
221
293
|
*/
|
|
222
|
-
async
|
|
223
|
-
return this.request("
|
|
294
|
+
async DisableDataKey(req, cb) {
|
|
295
|
+
return this.request("DisableDataKey", req, cb);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* 返回数据密钥属性信息列表
|
|
299
|
+
*/
|
|
300
|
+
async DescribeDataKeys(req, cb) {
|
|
301
|
+
return this.request("DescribeDataKeys", req, cb);
|
|
224
302
|
}
|
|
225
303
|
/**
|
|
226
304
|
* 对指定的CMK禁止密钥轮换功能。
|
|
@@ -228,6 +306,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
228
306
|
async DisableKeyRotation(req, cb) {
|
|
229
307
|
return this.request("DisableKeyRotation", req, cb);
|
|
230
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* 根据指定Offset和Limit获取主密钥列表详情。
|
|
311
|
+
*/
|
|
312
|
+
async ListKeyDetail(req, cb) {
|
|
313
|
+
return this.request("ListKeyDetail", req, cb);
|
|
314
|
+
}
|
|
231
315
|
/**
|
|
232
316
|
* 禁用白盒密钥
|
|
233
317
|
*/
|
|
@@ -277,10 +361,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
277
361
|
return this.request("CreateWhiteBoxKey", req, cb);
|
|
278
362
|
}
|
|
279
363
|
/**
|
|
280
|
-
*
|
|
364
|
+
* 启用数据密钥
|
|
281
365
|
*/
|
|
282
|
-
async
|
|
283
|
-
return this.request("
|
|
366
|
+
async EnableDataKey(req, cb) {
|
|
367
|
+
return this.request("EnableDataKey", req, cb);
|
|
284
368
|
}
|
|
285
369
|
/**
|
|
286
370
|
* 启用白盒密钥
|
|
@@ -319,10 +403,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
319
403
|
return this.request("UpdateKeyDescription", req, cb);
|
|
320
404
|
}
|
|
321
405
|
/**
|
|
322
|
-
*
|
|
406
|
+
* 取消密钥归档,取消后密钥的状态变为Enabled。
|
|
323
407
|
*/
|
|
324
|
-
async
|
|
325
|
-
return this.request("
|
|
408
|
+
async CancelKeyArchive(req, cb) {
|
|
409
|
+
return this.request("CancelKeyArchive", req, cb);
|
|
326
410
|
}
|
|
327
411
|
/**
|
|
328
412
|
* 获取白盒解密密钥
|
|
@@ -343,10 +427,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
343
427
|
return this.request("GetRegions", req, cb);
|
|
344
428
|
}
|
|
345
429
|
/**
|
|
346
|
-
*
|
|
430
|
+
* 根据指定Offset和Limit获取数据密钥列表详情。
|
|
347
431
|
*/
|
|
348
|
-
async
|
|
349
|
-
return this.request("
|
|
432
|
+
async ListDataKeyDetail(req, cb) {
|
|
433
|
+
return this.request("ListDataKeyDetail", req, cb);
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* 批量禁用数据密钥
|
|
437
|
+
*/
|
|
438
|
+
async DisableDataKeys(req, cb) {
|
|
439
|
+
return this.request("DisableDataKeys", req, cb);
|
|
350
440
|
}
|
|
351
441
|
}
|
|
352
442
|
exports.Client = Client;
|