修改README,使用安全控件作为专有名词

Signed-off-by: libing23 <libing23@huawei.com>
This commit is contained in:
libing23
2023-09-13 20:04:40 +08:00
parent 2286643841
commit bb7abafca1
2 changed files with 17 additions and 17 deletions
+17 -17
View File
@@ -1,22 +1,22 @@
# 安全件管理服务
# 安全件管理服务
## 简介
安全控件特性,提供一组称为“安全组件”的ArkUI组件,类似Button(按钮)、Text(文本)提供给开发者集成到自己应用界面中。
当用户点击了这类件后,应用将被授予对应的临时授权,而不需要额外申请权限即可访问用户隐私数据,达到减少授权弹窗对用户的干扰。
安全控件是OpenHarmony提供一组系统实现的ArkUI组件,类似Button(按钮)、Text(文本)提供给开发者集成到自己应用界面中。
当用户点击了这类件后,应用将被授予对应的临时授权,而不需要额外申请权限即可访问用户隐私数据,达到减少授权弹窗对用户的干扰。
例如:应用开发者可以在应用中集成位置件(LocationButton),这样就不用申请精准定位权限,当用户点击该件时,应用可以获得前台情况下的精准定位临时权限,继而调用位置服务接口获取位置信息。
例如:应用开发者可以在应用中集成位置件(LocationButton),这样就不用申请精准定位权限,当用户点击该件时,应用可以获得前台情况下的精准定位临时权限,继而调用位置服务接口获取位置信息。
安全控件特性原理图如下所示:
![zh-cn_image_0000001566651300](figures/zh-cn_image_0000001566651300.png)
由安全件UX实现、安全件管理服务组成。UX实现集成在ArkUI框架中,负责提供件的具体绘制; 安全件管理服务负责安全件的管理、合法性检查、临时权限的授予等。
由安全件UX实现、安全件管理服务组成。UX实现集成在ArkUI框架中,负责提供件的具体绘制; 安全件管理服务负责安全件的管理、合法性检查、临时权限的授予等。
安全件管理服务主要提供如下功能:
安全件管理服务主要提供如下功能:
- 提供应用安全件的注册、临时授权、取消注册等Native接口实现。
- 提供应用安全件的注册、临时授权、取消注册等Native接口实现。
- 负责安全件的合法性检查,只有合法的安全件才能授权成功。
- 负责安全件的合法性检查,只有合法的安全件才能授权成功。
- 提供媒体库服务查询临时授权的Native接口实现。
@@ -30,14 +30,14 @@
├── frameworks # 框架层,基础功能代码存放目录
│ ├── common # 框架公共代码存放目录
│ ├── enhance_adapter # 能力增强适配代码存放目录
│ └── security_component # 安全件服务框架代码存放目录
│ └── security_component # 安全件服务框架代码存放目录
├── interfaces # 接口层
│ └── inner_api # 内部接口层
│ ├── enhance_kits # 安全件配置接口代码存放目录
│ └── security_component # 安全件服务接口层代码存放目录
│ ├── enhance_kits # 安全件配置接口代码存放目录
│ └── security_component # 安全件服务接口层代码存放目录
└── services # 服务层
└── security_component_service/sa
└── sa_main # 安全件服务侧代码存放目录
└── sa_main # 安全件服务侧代码存放目录
```
@@ -46,13 +46,13 @@
| **接口申明** | **接口描述** |
| --- | --- |
| int32_t RegisterSecurityComponent(SecCompType type, const std::string& componentInfo, int32_t& scId); | 注册安全件 |
| int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo); | 更新安全件信息 |
| int32_t UnregisterSecurityComponent(int32_t scId); | 取消注册安全件 |
| int32_t RegisterSecurityComponent(SecCompType type, const std::string& componentInfo, int32_t& scId); | 注册安全件 |
| int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo); | 更新安全件信息 |
| int32_t UnregisterSecurityComponent(int32_t scId); | 取消注册安全件 |
| int32_t ReportSecurityComponentClickEvent(int32_t scId, const std::string& componentInfo, const SecCompClickEvent& touchInfo, sptr&lt;IRemoteObject&gt; callerToken); | 上报点击事件,申请临时授权 |
| int32_t SetEnhanceCfg(uint8_t* cfg, uint32_t cfgLen); | 设置安全件增强的配置,供多模服务使用 |
| int32_t SetEnhanceCfg(uint8_t* cfg, uint32_t cfgLen); | 设置安全件增强的配置,供多模服务使用 |
| int32_t GetPointerEventEnhanceData(void* data, uint32_t dataLen, uint8_t* enhanceData, uint32_t& enHancedataLen); | 获取点击事件的安全增强数据,供多模服务使用 |
| bool ReduceAfterVerifySavePermission(AccessToken::AccessTokenID tokenId); | 校验后取消保存件权限 |
| bool ReduceAfterVerifySavePermission(AccessToken::AccessTokenID tokenId); | 校验后取消保存件权限 |
## 相关仓
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 36 KiB