diff --git a/zh-cn/application-dev/security/huks-guidelines.md b/zh-cn/application-dev/security/huks-guidelines.md index 4ef31c5f519db79a8d21b37509a373a0ba6a797b..c5a8655ee077a94caa959da94d513fade25ab0f5 100644 --- a/zh-cn/application-dev/security/huks-guidelines.md +++ b/zh-cn/application-dev/security/huks-guidelines.md @@ -7,16 +7,16 @@ ## 接口说明 -| 接口名 | 描述 | +| 接口名 | 描述 | | ------------------------------------------------------------ | ---------------- | -| function generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void; | 生成密钥 | -| function generateKey(keyAlias: string, options: HuksOptions) : Promise; | 生成密钥 | -| function exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void; | 导出公钥 | -| function exportKey(keyAlias: string, options: HuksOptions) : Promise; | 导出公钥 | -| function isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void; | 查询密钥是否存在 | -| function isKeyExist(keyAlias: string, options: HuksOptions) : Promise; | 查询密钥是否存在 | -| function deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void; | 删除密钥 | -| function deleteKey(keyAlias: string, options: HuksOptions) : Promise; | 删除密钥 | +| generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void| 生成密钥 | +| generateKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>| 生成密钥 | +| exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void| 导出公钥 | +| exportKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>| 导出公钥 | +| isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback<boolean>) : void | 查询密钥是否存在 | +| isKeyExist(keyAlias: string, options: HuksOptions) : Promise<boolean> | 查询密钥是否存在 | +| deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void| 删除密钥 | +| deleteKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>| 删除密钥 | ## 开发步骤