mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
!10260 【api12合入】【用户IAM】支持口令超期校验,返回对应错误码
Merge pull request !10260 from liuhanxiong/master
This commit is contained in:
commit
92cfffaff4
46
api/@ohos.userIAM.userAuth.d.ts
vendored
46
api/@ohos.userIAM.userAuth.d.ts
vendored
@ -929,6 +929,22 @@ declare namespace userAuth {
|
||||
* @syscap SystemCapability.UserIAM.UserAuth.Core
|
||||
* @since 9
|
||||
*/
|
||||
/**
|
||||
* Check whether the authentication capability is available.
|
||||
*
|
||||
* @permission ohos.permission.ACCESS_BIOMETRIC
|
||||
* @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 } 12500002 - General operation error.
|
||||
* @throws { BusinessError } 12500005 - The authentication type is not supported.
|
||||
* @throws { BusinessError } 12500006 - The authentication trust level is not supported.
|
||||
* @throws { BusinessError } 12500010 - The type of credential has not been enrolled.
|
||||
* @throws { BusinessError } 12500013 - Indicates that current operation failed because of PIN expired.
|
||||
* @syscap SystemCapability.UserIAM.UserAuth.Core
|
||||
* @since 12
|
||||
*/
|
||||
function getAvailableStatus(authType: UserAuthType, authTrustLevel: AuthTrustLevel): void;
|
||||
|
||||
/**
|
||||
@ -1273,6 +1289,26 @@ declare namespace userAuth {
|
||||
* @syscap SystemCapability.UserIAM.UserAuth.Core
|
||||
* @since 10
|
||||
*/
|
||||
/**
|
||||
* Start this authentication, an instance can only perform authentication once.
|
||||
*
|
||||
* @permission ohos.permission.ACCESS_BIOMETRIC
|
||||
* @throws { BusinessError } 201 - Permission verification failed.
|
||||
* @throws { BusinessError } 401 - Incorrect parameters.
|
||||
* @throws { BusinessError } 12500001 - Authentication failed.
|
||||
* @throws { BusinessError } 12500002 - General operation error.
|
||||
* @throws { BusinessError } 12500003 - The operation is canceled.
|
||||
* @throws { BusinessError } 12500004 - The operation is time-out.
|
||||
* @throws { BusinessError } 12500005 - The authentication type is not supported.
|
||||
* @throws { BusinessError } 12500006 - The authentication trust level is not supported.
|
||||
* @throws { BusinessError } 12500007 - The authentication task is busy.
|
||||
* @throws { BusinessError } 12500009 - The authenticator is locked.
|
||||
* @throws { BusinessError } 12500010 - The type of credential has not been enrolled.
|
||||
* @throws { BusinessError } 12500011 - The authentication is canceled from widget's navigation button.
|
||||
* @throws { BusinessError } 12500013 - Indicates that current authentication failed because of PIN expired.
|
||||
* @syscap SystemCapability.UserIAM.UserAuth.Core
|
||||
* @since 12
|
||||
*/
|
||||
start(): void;
|
||||
|
||||
/**
|
||||
@ -1432,7 +1468,15 @@ declare namespace userAuth {
|
||||
* @syscap SystemCapability.UserIAM.UserAuth.Core
|
||||
* @since 10
|
||||
*/
|
||||
CANCELED_FROM_WIDGET = 12500011
|
||||
CANCELED_FROM_WIDGET = 12500011,
|
||||
|
||||
/**
|
||||
* Indicates that current operation failed because of PIN expired.
|
||||
*
|
||||
* @syscap SystemCapability.UserIAM.UserAuth.Core
|
||||
* @since 12
|
||||
*/
|
||||
PIN_EXPIRED = 12500013
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user