Alex Rivera | Logout

Storing username/password on Mac using Java

Asked 2009-04-07T22:12:27.390
12

I'm writing a small program (a twitter client) in Java, aimed at Mac OS X. As part of its functionality, it needs to have a place to store the twitter username/password. The natural place would be the mac keychain, but I can't find any way of accessing it.

Is there any way of accessing the mac keychain from Java, or failing that, what is your recommendation for where to store the username/password instead?

Edit
Report

1 Answer

3

You should take a look at twitters API page on OAuth support. By using OAuth, you don't need to know the user's twitter password.

http://apiwiki.twitter.com/OAuth-FAQ

answered 2009-04-08T05:27:05.880

Your Answer