fix: fix 401 content

Signed-off-by: abonadon_hk <huangkang22@huawei.com>
Change-Id: I2b27792ea77d4321b3938ea35927d3a119ad482c
This commit is contained in:
abonadon_hk 2024-05-21 22:02:24 +08:00
parent b12658ad34
commit 92e0461665

View File

@ -921,7 +921,8 @@ declare namespace userAuth {
* @param { UserAuthType } authType - Credential type for authentication.
* @param { AuthTrustLevel } authTrustLevel - Trust level of authentication result.
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* @throws { BusinessError } 12500002 - General operation error.
* @throws { BusinessError } 12500005 - The authentication type is not supported.
* @throws { BusinessError } 12500006 - The authentication trust level is not supported.
@ -936,7 +937,8 @@ declare namespace userAuth {
* @param { UserAuthType } authType - Credential type for authentication.
* @param { AuthTrustLevel } authTrustLevel - Trust level of authentication result.
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* @throws { BusinessError } 12500002 - General operation error.
* @throws { BusinessError } 12500005 - The authentication type is not supported.
* @throws { BusinessError } 12500006 - The authentication trust level is not supported.
@ -981,7 +983,8 @@ declare namespace userAuth {
* @param { UserAuthType } authType - Credential type for authentication.
* @returns { EnrolledState } Returns the enrolled state.
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* @throws { BusinessError } 12500002 - General operation error.
* @throws { BusinessError } 12500005 - The authentication type is not supported.
* @throws { BusinessError } 12500010 - The type of credential has not been enrolled.
@ -1251,7 +1254,10 @@ declare namespace userAuth {
*
* @param { 'result' } type - Indicates the type of event.
* @param { IAuthCallback } callback - Indicates the listener.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* <br>2. Incorrect parameter types.
* <br>3. Parameter verification failed.
* @throws { BusinessError } 12500002 - General operation error.
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @since 10
@ -1263,7 +1269,10 @@ declare namespace userAuth {
*
* @param { 'result' } type - Indicates the type of event.
* @param { IAuthCallback } callback - Indicates the listener.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* <br>2. Incorrect parameter types.
* <br>3. Parameter verification failed.
* @throws { BusinessError } 12500002 - General operation error.
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @since 10
@ -1275,7 +1284,8 @@ declare namespace userAuth {
*
* @permission ohos.permission.ACCESS_BIOMETRIC
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 12500001 - Authentication failed.
* @throws { BusinessError } 12500002 - General operation error.
* @throws { BusinessError } 12500003 - Authentication canceled.
@ -1294,7 +1304,8 @@ declare namespace userAuth {
*
* @permission ohos.permission.ACCESS_BIOMETRIC
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 12500001 - Authentication failed.
* @throws { BusinessError } 12500002 - General operation error.
* @throws { BusinessError } 12500003 - Authentication canceled.
@ -1316,7 +1327,8 @@ declare namespace userAuth {
*
* @permission ohos.permission.ACCESS_BIOMETRIC
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 12500002 - General operation error.
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @since 10
@ -1330,7 +1342,10 @@ declare namespace userAuth {
* @param { AuthParam } authParam - Auth parameter.
* @param { WidgetParam } widgetParam - Widget parameter.
* @returns { UserAuthInstance } Returns an authentication instance with widget.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* <br>2. Incorrect parameter types.
* <br>3. Parameter verification failed.
* @throws { BusinessError } 12500002 - General operation error.
* @throws { BusinessError } 12500005 - The authentication type is not supported.
* @throws { BusinessError } 12500006 - The authentication trust level is not supported.
@ -1366,7 +1381,10 @@ declare namespace userAuth {
* @param { string } eventData - The event data from widget.
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 202 - The caller is not a system application.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* <br>2. Incorrect parameter types.
* <br>3. Parameter verification failed.
* @throws { BusinessError } 12500002 - General operation error.
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @systemapi Hide this for inner system use.
@ -1493,7 +1511,10 @@ declare namespace userAuth {
*
* @param { 'command' } type - Indicates the type of event.
* @param { IAuthWidgetCallback } callback - Indicates the listener.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* <br>2. Incorrect parameter types.
* <br>3. Parameter verification failed.
* @throws { BusinessError } 12500002 - General operation error.
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @systemapi Hide this for inner system use.
@ -1506,7 +1527,10 @@ declare namespace userAuth {
*
* @param { 'command' } type - Indicates the type of event.
* @param { IAuthWidgetCallback } callback - Indicates the listener.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* <br>2. Incorrect parameter types.
* <br>3. Parameter verification failed.
* @throws { BusinessError } 12500002 - General operation error.
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @systemapi Hide this for inner system use.
@ -1523,7 +1547,9 @@ declare namespace userAuth {
* @returns { UserAuthWidgetMgr } Returns an authentication manager.
* @throws { BusinessError } 201 - Permission verification failed.
* @throws { BusinessError } 202 - The caller is not a system application.
* @throws { BusinessError } 401 - Incorrect parameters.
* @throws { BusinessError } 401 - Incorrect parameters. Possible causes:
* <br>1. Mandatory parameters are left unspecified.
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 12500002 - General operation error.
* @syscap SystemCapability.UserIAM.UserAuth.Core
* @systemapi Hide this for inner system use.