哪些字符串键和值映射属性可以通过 Smack api 的 createAccount 函数放置?

发布于 2024-11-30 07:38:44 字数 216 浏览 4 评论 0原文

我真的没有尝试过这个,我只是好奇可以使用 AccountManager 的 createAccount 设置哪些属性:

createAccount(String username, String password, Map<String,String> attributes)

我可以放置任何 String 键和值,还是有一个定义的标准?

I really have not tried this, I am just curious what are the attributes that can be set with createAccount with AccountManager:

createAccount(String username, String password, Map<String,String> attributes)

Can I put any String key and value, or there is a defined standard for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

杀お生予夺 2024-12-07 07:38:44

这些属性是通过调用

accountManager.getAccountAttributes()

检查您提到的 createAccount() 方法的 javadoc 来获取的。在底部。

See Also:
    getAccountAttributes()

The attributes are obtained by calling

accountManager.getAccountAttributes()

Check the javadoc for the createAccount() method that you mentioned. At the bottom.

See Also:
    getAccountAttributes()
枕花眠 2024-12-07 07:38:44
name -- the user's name.
first -- the user's first name.
last -- the user's last name.
email -- the user's email address.
city -- the user's city.
state -- the user's state.
zip -- the user's ZIP code.
phone -- the user's phone number.
url -- the user's website.
date -- the date the registration took place.
misc -- other miscellaneous information to associate with the account.
text -- textual information to associate with the account.
remove -- empty flag to remove account. 

请参阅 AccountManager javadoc

name -- the user's name.
first -- the user's first name.
last -- the user's last name.
email -- the user's email address.
city -- the user's city.
state -- the user's state.
zip -- the user's ZIP code.
phone -- the user's phone number.
url -- the user's website.
date -- the date the registration took place.
misc -- other miscellaneous information to associate with the account.
text -- textual information to associate with the account.
remove -- empty flag to remove account. 

See AccountManager javadoc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文