diff --git a/zh-cn/application-dev/reference/apis-universal-keystore-kit/js-apis-huks-sys.md b/zh-cn/application-dev/reference/apis-universal-keystore-kit/js-apis-huks-sys.md index 31788260da4f7b8ec632629847a93368d7e3c935..2c05fbee4889843b5bdfec9618b440a7cfa388f4 100644 --- a/zh-cn/application-dev/reference/apis-universal-keystore-kit/js-apis-huks-sys.md +++ b/zh-cn/application-dev/reference/apis-universal-keystore-kit/js-apis-huks-sys.md @@ -38,7 +38,7 @@ generateKeyItemAsUser(userId: number, keyAlias: string, options: HuksOptions) : | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -132,7 +132,7 @@ deleteKeyItemAsUser(userId: number, keyAlias: string, options: HuksOptions) : Pr | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000004 | operating file failed. | | 12000005 | IPC communication failed. | @@ -237,7 +237,7 @@ importKeyItemAsUser(userId: number, keyAlias: string, options: HuksOptions) : Pr | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -341,7 +341,7 @@ attestKeyItemAsUser(userId: number, keyAlias: string, options: HuksOptions) : Pr | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -496,7 +496,7 @@ anonAttestKeyItemAsUser(userId: number, keyAlias: string, options: HuksOptions) | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -645,7 +645,7 @@ importWrappedKeyItemAsUser(userId: number, keyAlias: string, wrappingKeyAlias: s | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -1306,7 +1306,7 @@ exportKeyItemAsUser(userId: number, keyAlias: string, options: HuksOptions) : Pr | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -1425,7 +1425,7 @@ getKeyItemPropertiesAsUser(userId: number, keyAlias: string, options: HuksOption | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -1541,7 +1541,7 @@ hasKeyItemAsUser(userId: number, keyAlias: string, options: HuksOptions) : Promi | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000002 | algorithm param is missing. | | 12000003 | algorithm param is invalid. | @@ -1654,7 +1654,7 @@ initSessionAsUser(userId: number, keyAlias: string, options: HuksOptions) : Prom | -------- | ------------- | | 201 | the application permission is not sufficient, which may be caused by lack of cross-account permission, or the system has not been unlocked by user, or the user does not exist. | | 202 | non-system applications are not allowed to use system APIs. | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | diff --git a/zh-cn/application-dev/reference/apis-universal-keystore-kit/js-apis-huks.md b/zh-cn/application-dev/reference/apis-universal-keystore-kit/js-apis-huks.md index f5b5933b91356154526b4acded579e69b3a9ed81..50c465022bfcb2b9651fae7ac8991ee9bd97eff0 100644 --- a/zh-cn/application-dev/reference/apis-universal-keystore-kit/js-apis-huks.md +++ b/zh-cn/application-dev/reference/apis-universal-keystore-kit/js-apis-huks.md @@ -83,7 +83,7 @@ generateKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\ | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -169,7 +169,7 @@ generateKeyItem(keyAlias: string, options: HuksOptions) : Promise\ | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -251,7 +251,7 @@ deleteKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\ | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000004 | operating file failed. | | 12000005 | IPC communication failed. | @@ -396,7 +396,7 @@ importKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\ | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -595,7 +595,7 @@ attestKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\ | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000002 | algorithm param is missing. | | 12000003 | algorithm param is invalid. | @@ -1815,7 +1815,7 @@ hasKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\ | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000002 | algorithm param is missing. | | 12000003 | algorithm param is invalid. | @@ -1946,7 +1946,7 @@ initSession操作密钥接口,使用Callback回调异步返回结果。huks.in | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -1986,7 +1986,7 @@ initSession操作密钥接口,使用Promise方式异步返回结果。huks.ini | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -2021,7 +2021,7 @@ updateSession操作密钥接口,使用Callback回调异步返回结果。huks. | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -2059,7 +2059,7 @@ updateSession操作密钥接口,使用Callback回调异步返回结果。huks. | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -2102,7 +2102,7 @@ updateSession操作密钥接口,使用Promise方式异步返回结果。huks.i | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -2139,7 +2139,7 @@ finishSession操作密钥接口,使用Callback回调异步返回结果。huks. | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -2177,7 +2177,7 @@ finishSession操作密钥接口,使用Callback回调异步返回结果。huks. | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -2220,7 +2220,7 @@ finishSession操作密钥接口,使用Promise方式异步返回结果。huks.i | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000001 | algorithm mode is not supported. | | 12000002 | algorithm param is missing. | @@ -2257,7 +2257,7 @@ abortSession操作密钥接口,使用Callback回调异步返回结果 。 | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000004 | operating file failed. | | 12000005 | IPC communication failed. | @@ -2369,7 +2369,7 @@ abortSession操作密钥接口,使用Promise方式异步返回结果。 | 错误码ID | 错误信息 | | -------- | ------------- | -| 401 | argument is invalid. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 801 | api is not supported. | | 12000004 | operating file failed. | | 12000005 | IPC communication failed. | @@ -2534,7 +2534,7 @@ async function testAbort() { | 名称 | 值 | 说明 | | ---------------------------------------------- | -------- |--------------------------- | | HUKS_ERR_CODE_PERMISSION_FAIL | 201 | 权限错误导致失败。
**系统能力:** SystemCapability.Security.Huks.Core | -| HUKS_ERR_CODE_ILLEGAL_ARGUMENT | 401 | 参数错误导致失败。
**系统能力:** SystemCapability.Security.Huks.Core | +| HUKS_ERR_CODE_ILLEGAL_ARGUMENT | 401 | 参数错误导致失败。可能原因:1. 必选参数未指定。2. 参数类型不正确。3. 参数校验失败。
**系统能力:** SystemCapability.Security.Huks.Core | | HUKS_ERR_CODE_NOT_SUPPORTED_API | 801 | 不支持的API。
**系统能力:** SystemCapability.Security.Huks.Core | | HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED | 12000001 | 不支持的功能/特性。
**系统能力:** SystemCapability.Security.Huks.Core | | HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT | 12000002 | 缺少密钥算法参数。
**系统能力:** SystemCapability.Security.Huks.Core |