• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the User IAM Subsystem
2
3The table below lists the APIs changes of the user IAM subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.userIAM.userAuth | AuthTrustLevel | ATL4 = 40000 | Added|
10| ohos.userIAM.userAuth | AuthTrustLevel | ATL3 = 30000 | Added|
11| ohos.userIAM.userAuth | AuthTrustLevel | ATL2 = 20000 | Added|
12| ohos.userIAM.userAuth | AuthTrustLevel | ATL1 = 10000 | Added|
13| ohos.userIAM.userAuth | UserAuthType | FINGERPRINT = 4 | Added|
14| ohos.userIAM.userAuth | UserAuthType | FACE = 2 | Added|
15| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_TOO_SLOW = 5 | Added|
16| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_TOO_FAST = 4 | Added|
17| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_PARTIAL = 3 | Added|
18| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_INSUFFICIENT = 2 | Added|
19| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_DIRTY = 1 | Added|
20| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_GOOD = 0 | Added|
21| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_NOT_DETECTED = 11 | Added|
22| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_POOR_GAZE = 10 | Added|
23| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_MUCH_MOTION = 9 | Added|
24| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_LEFT = 8 | Added|
25| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_RIGHT = 7 | Added|
26| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_LOW = 6 | Added|
27| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_HIGH = 5 | Added|
28| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_FAR = 4 | Added|
29| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_CLOSE = 3 | Added|
30| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_DARK = 2 | Added|
31| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_BRIGHT = 1 | Added|
32| ohos.userIAM.userAuth | ResultCode | NOT_ENROLLED = 10 | Added|
33| ohos.userIAM.userAuth | ResultCode | LOCKED = 9 | Added|
34| ohos.userIAM.userAuth | ResultCode | INVALID_PARAMETERS = 8 | Added|
35| ohos.userIAM.userAuth | ResultCode | BUSY = 7 | Added|
36| ohos.userIAM.userAuth | ResultCode | TRUST_LEVEL_NOT_SUPPORT = 6 | Added|
37| ohos.userIAM.userAuth | ResultCode | TYPE_NOT_SUPPORT = 5 | Added|
38| ohos.userIAM.userAuth | ResultCode | TIMEOUT = 4 | Added|
39| ohos.userIAM.userAuth | ResultCode | CANCELED = 3 | Added|
40| ohos.userIAM.userAuth | ResultCode | GENERAL_ERROR = 2 | Added|
41| ohos.userIAM.userAuth | ResultCode | FAIL = 1 | Added|
42| ohos.userIAM.userAuth | ResultCode | SUCCESS = 0 | Added|
43| ohos.userIAM.userAuth | AuthResult | freezingTime ?: number; | Added|
44| ohos.userIAM.userAuth | AuthResult | remainTimes ?: number; | Added|
45| ohos.userIAM.userAuth | AuthResult | token ?: Uint8Array; | Added|
46| ohos.userIAM.userAuth | IUserAuthCallback | onAcquireInfo ?: (module : number, acquire : number, extraInfo : any) => void; | Added|
47| ohos.userIAM.userAuth | IUserAuthCallback | onResult: (result : number, extraInfo : AuthResult) => void; | Added|
48| ohos.userIAM.userAuth | UserAuth | cancelAuth(contextID : Uint8Array) : number; | Added|
49| ohos.userIAM.userAuth | UserAuth | auth(challenge: Uint8Array, authType: UserAuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array; | Added|
50| ohos.userIAM.userAuth | UserAuth | getAvailableStatus(authType : UserAuthType, authTrustLevel : AuthTrustLevel) : number; | Added|
51| ohos.userIAM.userAuth | UserAuth | getVersion() : number; | Added|
52| ohos.userIAM.userAuth | UserAuth | constructor(); | Added|
53| ohos.userIAM.userAuth | userAuth | function getAuthenticator(): Authenticator; | Added|
54| ohos.userIAM.userAuth | Authenticator | execute(type: AuthType, level: SecureLevel, callback: AsyncCallback\<number>): void;<br>execute(type: AuthType, level: SecureLevel): Promise\<number>; | Added|
55| ohos.userIAM.userAuth | AuthenticationResult | GENERAL_ERROR = 100 | Added|
56| ohos.userIAM.userAuth | AuthenticationResult | NOT_ENROLLED = 8 | Added|
57| ohos.userIAM.userAuth | AuthenticationResult | LOCKED = 7 | Added|
58| ohos.userIAM.userAuth | AuthenticationResult | INVALID_PARAMETERS = 6 | Added|
59| ohos.userIAM.userAuth | AuthenticationResult | BUSY = 5 | Added|
60| ohos.userIAM.userAuth | AuthenticationResult | CAMERA_FAIL = 4 | Added|
61| ohos.userIAM.userAuth | AuthenticationResult | TIMEOUT = 3 | Added|
62| ohos.userIAM.userAuth | AuthenticationResult | CANCELED = 2 | Added|
63| ohos.userIAM.userAuth | AuthenticationResult | COMPARE_FAILURE = 1 | Added|
64| ohos.userIAM.userAuth | AuthenticationResult | SUCCESS = 0 | Added|
65| ohos.userIAM.userAuth | AuthenticationResult | NO_SUPPORT = -1 | Added|
66