Access the OS X keychain from Java.
C Java

README.md

Example:

OSXKeychain keychain = OSXKeychain.getInstance();
String password = keychain.findInternetPassword("github.com", null, "conormcd", "/login", 0);