diff --git a/en/application-dev/security/userauth-guidelines.md b/en/application-dev/security/userauth-guidelines.md index 2902e73fe80c57942023674bb174cac384a218e2..f2bac259a83a5b595b69875cd99f47afda0b27e2 100644 --- a/en/application-dev/security/userauth-guidelines.md +++ b/en/application-dev/security/userauth-guidelines.md @@ -17,7 +17,6 @@ Before authentication, you must specify the [authentication type](../reference/a | API | Description | | ---------- | ----------------------- | -| getVersion() : number | Obtains the version information of an authentication object. | | getAvailableStatus(authType : UserAuthType, authTrustLevel : AuthTrustLevel): void | Checks whether the device supports the specified authentication type and level.| | getAuthInstance(challenge : Uint8Array, authType : UserAuthType, authTrustLevel : AuthTrustLevel): AuthInstance | Obtains an **AuthInstance** instance for user authentication.| | on(name : AuthEventKey, callback : AuthEvent) : void | Subscribes to the user authentication events of the specified type.| @@ -25,26 +24,6 @@ Before authentication, you must specify the [authentication type](../reference/a | start: void | Starts user authentication. | | cancel: void | Cancel this user authentication. | -## Obtaining Authentication Object Version Information - -### How to Develop - -1. Apply for the permission.
Configure the **ohos.permission.ACCESS_BIOMETRIC** permission in **requestPermissions** in the **module.json5** file. For more information, see [module.json5](../quick-start/module-configuration-file.md). - -2. Use [getVersion](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetversion9) to obtain the version information. - - ```js - import userIAM_userAuth from '@ohos.userIAM.userAuth'; - - // Obtain version information. - try { - let version = userIAM_userAuth.getVersion(); - console.info("auth version = " + version); - } catch (error) { - console.info("get version failed, error = " + error); - } - ``` - ## Checking Authentication Capabilities Supported by a Device ### How to Develop diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.9.3/changelogs-useriam.md b/en/release-notes/changelogs/OpenHarmony_3.2.9.3/changelogs-useriam.md new file mode 100644 index 0000000000000000000000000000000000000000..b1011149ce89079e6e45212f0d1631794c406742 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.9.3/changelogs-useriam.md @@ -0,0 +1,35 @@ +# User IAM Subsystem Changelog + +## cl.useriam.1 Deletion of API9 GetVesion + +Deleted the **GetVersion()** API. + +**Change Impact** + +The **GetVersion()** API cannot be used from this version. + +**Key API/Component Changes** + +| Module | Class | Method/Attribute/Enum/Constant | Change Type | +| ---------------------- | ------------------- | ------------------------- | ------------------------ | +| ohos.userIAM.userAuth | function | getVersion() : number | Deleted| + +**Adaptation Guide** + +Delete the use of **GetVersion()**. + +## cl.useriam.2 Change of the API8 GetVesion() Return Value + +Changed the return value of **GetVersion()** (in API version 8) from **0** to **1**. + +**Change Impact** + +If the application verifies the return value of **GetVersion()** (API version 8), the verification fails. + +**Key API/Component Changes** + +The return value of **GetVersion()** (in API version 8) is changed from **0** to **1**. + +**Adaptation Guide** + +Delete the use of **GetVersion()** (API version 8) because this API has been deprecated.