diff --git a/api/@ohos.security.huks.d.ts b/api/@ohos.security.huks.d.ts index 208e2899a5470597acb72c72eca3be0a441ebba7..3e2f88210cce6ea79190b39df60e7157ef5053f1 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.