Android 客户管理器的用途?
android.accounts.AccountManager
类的用途是什么?
课程文档是这么说的
提供对用户在线帐户的集中注册表的访问。
为什么这有用?文档再次说
用户为每个帐户输入一次凭据(用户名和密码),通过“一键式”批准授予应用程序访问在线资源的权限。
所以这只是为了用户方便?它使您不必总是输入 ID 和 ID。密码。
但代价是您所有帐户的 ids 和 passwd 都存储在设备上,因此很容易被窃取。
并且您拥有 id/passwd 的每台服务器也必须参与,对吗?所以这不像浏览器表单的“字段完成”那样使用。这要求服务器在成功登录后向您提供一个令牌,可用于(在有限的时间内)重新连接到服务器。
谁能对第 1、2、3 点发表评论,并告诉我是否遗漏了任何重要的内容?
What is the purpose of the android.accounts.AccountManager
class?
The class docs say it
provides access to a centralized registry of the user's online accounts.
And why is that useful? The docs again say
The user enters credentials (username and password) once per account, granting applications access to online resources with "one-click" approval.
So it's only about user convenience? It saves you from always having to type in an id & password.
But the cost is that the ids and passwds for all your accounts are stored on the device, and thus vulnerable to being stolen.
And each server for which you have an id/passwd, has to participate too, correct? So this is not used like the "field completion" of a browser form. This requires the server, on successful login, to give you a token which can be used (for a limited period) to reconnect to the server.
Could anyone comment on points 1, 2, and 3, and tell me if I am missing anything of significance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1)所以这只是为了用户方便?它使您不必总是输入 ID 和 ID。密码。
回答-是的,就我关心的客户经理而言,o会说是的,这只是为了
用户方便。
2)但代价是您所有帐户的 ID 和密码都存储在设备上,因此很容易被盗。
回答 - 是的,这就是为什么我们应该尽可能避免使用客户经理。请参阅下面的链接
http://security-n-tech .blogspot.com/2011/01/security-issue-exused-by-android.html
问题3)我对此不太理想
1) So it's only about user convenience? It saves you from always having to type in an id & password.
answer- ya as far as i m concerned about the account manager , o would say yes it is only for
user convenience.
2)But the cost is that the ids and passwds for all your accounts are stored on the device, and thus vulnerable to being stolen.
answer- ya u r right thts why we should avoid using account manager as possible.see this link below
http://security-n-tech.blogspot.com/2011/01/security-issue-exposed-by-android.html
question number 3) i have not much ideal about that