目录

Protecting Asset Data with User Authentication

The asset data mentioned in this topic refers to sensitive data, including passwords, login tokens, and other critical data (such as credit card numbers).

When to Use

Asset Store Kit (ASSET) can be used in the scenario, in which users need to view their bank card numbers using a financial/banking application. To ensure security, you can store bank card numbers in an asset store and enforce a user identity authentication before the bank card number is accessed.

When a user wants to view the bank card number, the application requests an identity authentication (for example, the user needs to enter a lock screen password or pass certain biometric authentication). When the identity authentication is successful, the application obtains the bank card number from ASSET and presents it to the user, greatly improving the user's security experience.

Development Process

The following figure illustrates the development process.

UserIAM provides only ArkTS APIs. Therefore, only ArkTS APIs can be used.

  1. The service queries an asset and determines whether the asset exists in the asset store based on the query result.

  2. If the asset does not exist:

  3. If the asset exists, the service can perform any of the following operations based on service requirements: