From 52c62b0e949eebb20c8a0c6ecede9c465bc4e672 Mon Sep 17 00:00:00 2001 From: lwt999 Date: Wed, 6 Aug 2025 11:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lwt999 --- api/@ohos.security.huks.d.ts | 60 ++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/api/@ohos.security.huks.d.ts b/api/@ohos.security.huks.d.ts index 208e2899a5..3e2f88210c 100644 --- a/api/@ohos.security.huks.d.ts +++ b/api/@ohos.security.huks.d.ts @@ -272,9 +272,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -427,9 +427,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -706,9 +706,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -867,9 +867,9 @@ declare namespace huks { * @param { string } wrappingKeyAlias - wrappingKeyAlias indicates the name of key for wrapping the key to be imported. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -1066,9 +1066,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -1231,9 +1231,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -1419,9 +1419,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -1609,9 +1609,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -2279,9 +2279,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key attestation operation. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.ATTEST_KEY or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -2395,9 +2395,9 @@ declare namespace huks { * @param { string } keyAlias - keyAlias indicates the key's name. * @param { HuksOptions } huksOptions - huksOptions indicates the properties of the key attestation operation. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. An attempt was made to use key as user forbidden by permission: - *
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. - * @throws { BusinessError } 202 - not system app + * @throws { BusinessError } 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. + * @throws { BusinessError } 202 - non-system applications are not allowed to use system APIs. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. -- Gitee