Hello Everyone,
at first thank you for reading this post. I've searched nearly 4 Hours the whole Internet but did not find an answer which pleased we well. Does anyone know how get access to the gnome keyring tool through dbus in an Java Application. I shall write an Java app which connects to a LDAP Server, and we wanna authenficate to that Server through Keyring. I've downloaded the jars and put them into netbeans and wrote the following code
try {
//DirectConnection dc = new DirectConnection("unix:path=/org/gnome/seahorse/keys");
conn = DBusConnection.getConnection(DBusConnection.SESSION);
} catch (Exception ex) {
JOptionPane.showMessageDialog(new JFrame(),
"Es ist ein Fehler aufgetreten.\n" + ex.getMessage() + "\n",
"Ein Fehler ist aufgetreten",
JOptionPane.ERROR_MESSAGE);
}
And it works!
But how have I to go on. Does anybody know a good tutorial or has an code snippet by the hand. I would be realy amused. Sorry about my bad english.