What is the best way to save user settings in java application?

后端 未结 3 1127
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 04:44

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?

Thank

3条回答
  •  暖寄归人
    2020-11-28 05:37

    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.

    Encrypted Preferences in Java

提交回复
热议问题