@ucloud-sdks/ucloud-sdk-js 0.2.26 → 0.2.27
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/lib/services/ukms/index.d.ts +20 -0
- package/package.json +1 -1
|
@@ -660,6 +660,14 @@ export interface GenerateMacRequest {
|
|
|
660
660
|
* GenerateMac - 使用HMAC密钥管理服务(KMS)密钥和该密钥支持的MAC算法,为消息生成基于哈希的消息认证码(HMAC)。
|
|
661
661
|
*/
|
|
662
662
|
export interface GenerateMacResponse {
|
|
663
|
+
/**
|
|
664
|
+
* 针对指定消息生成的基于哈希的消息认证码 (HMAC)、HMAC KMS 密钥和 MAC 算法。
|
|
665
|
+
*/
|
|
666
|
+
Mac?: string;
|
|
667
|
+
/**
|
|
668
|
+
* 用于生成 HMAC 的 MAC 算法。
|
|
669
|
+
*/
|
|
670
|
+
MacAlgorithm?: string;
|
|
663
671
|
}
|
|
664
672
|
/**
|
|
665
673
|
* GenerateRandom - 生成随机数
|
|
@@ -1217,4 +1225,16 @@ export interface VerifyMacRequest {
|
|
|
1217
1225
|
* VerifyMac - 验证签名
|
|
1218
1226
|
*/
|
|
1219
1227
|
export interface VerifyMacResponse {
|
|
1228
|
+
/**
|
|
1229
|
+
* 密钥ID
|
|
1230
|
+
*/
|
|
1231
|
+
KeyId?: string;
|
|
1232
|
+
/**
|
|
1233
|
+
* 验证中使用的 MAC 算法。
|
|
1234
|
+
*/
|
|
1235
|
+
MacAlgorithm?: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* 一个布尔值,表示 HMAC 是否已验证。
|
|
1238
|
+
*/
|
|
1239
|
+
MacValid?: boolean;
|
|
1220
1240
|
}
|