EGit change Iba3b87293c22e5fe7d989fc312184aa7463c4387 is also required
to make this work for EGit.
Change-Id: Iedc80e133e66d72e78ff0980b6e12634f75eca36
Signed-off-by: Carsten Pfeiffer <carsten.pfeiffer@gebit.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
public Password() {
super(JGitText.get().credentialPassword, true);
}
+
+ /**
+ * Initialize a new password item, with given prompt.
+ *
+ * @param msg
+ * prompt message
+ */
+ public Password(String msg) {
+ super(msg, true);
+ }
}
}
}
public boolean promptPassword(String msg) {
- CredentialItem.StringType v = newPrompt(msg);
- if (provider.get(uri, v)) {
- password = v.getValue();
+ CredentialItem.Password p = new CredentialItem.Password(msg);
+ if (provider.get(uri, p)) {
+ password = new String(p.getValue());
return true;
} else {
password = null;