I tries find way how to get a couple my passwords that I stored in Eclipse for FTP`s.
I use Eclipse 4 (juno), on Ubuntu 12.04, and all ftp`s stored using RSE plugin.
Found this tutorial Eclipse password recovery (cvs, subversion, ..) but seems it out of date. And I not Java programmer so it little bit difficult to me.
Noticed that in new Eclipse all passwords stored using Equinox so I also found this Interface ISecurePreferences doc.
As in the first link above, I tried install Eclipse-shell and execute next code there:
import org.eclipse.equinox.security.storage.SecurePreferencesFactory;
import org.eclipse.equinox.security.storage.ISecurePreferences;
ISecurePreferences root = SecurePreferencesFactory.getDefault();
root.nodeExists("org.eclipse.rse.core.security");
ISecurePreferences coresec = root.node("org.eclipse.rse.core.security");
coresec.nodeExists("org.eclipse.rse.systemtype.ftp");
ISecurePreferences typeftp = root.node("org.eclipse.rse.systemtype.ftp");
pass = typeftp.get("HERE_FTP_HOST/HERE_MY_FTP_USER_NAME", "test");
but instead of the password I got "test"
also I tried check all keys using typeftp.keys()
, but in the Eclipse console I got [Ljava.lang.String;@c5d03e6
how can find out with password recovery in Eclipse?