diff --git a/zh-cn/application-dev/reference/apis/js-apis-huks.md b/zh-cn/application-dev/reference/apis/js-apis-huks.md index 2180ff8d0017b1a7e027e60f78c88e57bad688f4..e7b81126ddc8c60f7f59bbc5785be2dcf106d4e8 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-huks.md +++ b/zh-cn/application-dev/reference/apis/js-apis-huks.md @@ -2508,28 +2508,9 @@ init操作密钥接口,使用Promise方式异步返回结果。huks.init, huks | ----------------------------------- | -------------------------------------------------- | | Promise\<[HuksHandle](#hukshandle)> | Promise对象。将Init操作返回的handle添加到密钥管理系统的回调。 | - -## huks.update(deprecated) - -update(handle: number, options: HuksOptions, callback: AsyncCallback\) : void - -update操作密钥接口,使用Callback回调异步返回结果。huks.init, huks.update, huks.finish为三段式接口,需要一起使用。 - -> **说明:** 从API Version 9开始废弃,建议使用[huks.updateSession9+](#huksupdatesession9)替代。 - -**系统能力**:SystemCapability.Security.Huks - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ----------------------------------------- | ---- | -------------------------------------------- | -| handle | number | 是 | Update操作的handle。 | -| options | [HuksOptions](#huksoptions) | 是 | Update的参数集合。 | -| callback | AsyncCallback\<[HuksResult](#huksresult)> | 是 | 回调函数。将Update操作的结果添加到密钥管理系统的回调。 | - ## huks.update(deprecated) -update(handle: number, options: HuksOptions, token: Uint8Array, callback: AsyncCallback\) : void +update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback) : void update操作密钥接口,使用Callback回调异步返回结果。huks.init, huks.update, huks.finish为三段式接口,需要一起使用。 @@ -2548,7 +2529,7 @@ update操作密钥接口,使用Callback回调异步返回结果。huks.init, h ## huks.update(deprecated) -update(handle: number, options: HuksOptions, token?: Uint8Array) : Promise\ +update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise; update操作密钥接口,使用Promise方式异步返回结果。huks.init, huks.update, huks.finish为三段式接口,需要一起使用。