在Java应用程序中保存用户设置的最佳方法是什么?

在Java应用程序中保存用户设置的最佳方法是什么?

问题描述:

安全地保存Java桌面应用程序中的用户设置的最佳方法是什么?例如,如果我想保存Ftp帐户设置,最好的方法是什么?

What is the best way to save user settings in java desktop app securely? For example If I want to save an Ftp account settings what is the best way to do that?

谢谢

偏好设置API 是存储用户和系统首选项的好方法。如果要存储密码,则必须对其进行加密。这是一篇很好的文章,可以帮助您入门。

The Preferences API is a nice way to store user and system preferences. If you want to store passwords, you'll have to encrypt them. Here is a nice article that can get you started.

Java加密首选项