
回复
在标准系统上,系统帐号组件主要提供分布式帐号登录状态管理能力,支持在端侧对接厂商云帐号应用,提供云帐号登录状态查询和更新的管理能力。
图 1 系统帐号组件架构图
分布式帐号的功能主要包括查询和更新帐号登录状态,仅支持系统应用。
表 1 分布式帐号模块说明
模块名 | 描述 |
---|---|
distributedAccount | 提供分布式帐号模块管理方法 |
表 2 分布式帐号类说明
类名 | 描述 |
---|---|
DistributedAccountAbility | 提供查询和更新分布式帐号登录状态方法 |
DistributedInfo | 提供分布式帐号信息,主要包括帐号名、帐号UID和帐号登录状态。 |
表 3 分布式帐号模块方法说明
方法 | 描述 |
---|---|
function getDistributedAccountAbility(): DistributedAccountAbility | 获取分布式帐号单实例对象 |
表 4 DistributedAccountAbility方法说明
方法 | 描述 |
---|---|
queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): void | 查询分布式帐号信息 |
queryOsAccountDistributedInfo(): Promise<DistributedInfo> | 查询分布式帐号信息 |
updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback<boolean>): void | 更新分布式帐号信息 |
updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<boolean> | 更新分布式帐号信息 |
帐号子系统
account_os_account