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