Use java to store user name / password on MAC

I am writing a small program (a twitter client) for Mac OS X in Java As part of its functionality, it needs a place to store twitter user names / passwords The natural place will be the MAC keychain, but I can't find any way to access it

Is there any way to access MAC Keychain from Java? Otherwise, where do you suggest to store user name / password?

Solution

There is a Java Keychain API and an implementation of keystore on OS X backed by the keychain

I think the key chain is the best place (if not the place) to store passwords It uses a good algorithm for encryption. Users are free to be free or paranoid about the availability of the key string of the application, and then store and configure the password together with all other passwords stored by the user

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>