@@ -29,7 +29,6 @@ public class SSHUserInfo implements UserInfo, UIKeyboardInteractive {
private String password = null;
private String password = null;
private String keyfile;
private String keyfile;
private String passphrase = null;
private String passphrase = null;
private boolean firstTime = true;
private boolean trustAllCertificates;
private boolean trustAllCertificates;
/** Constructor for SSHUserInfo. */
/** Constructor for SSHUserInfo. */
@@ -154,9 +153,8 @@ public class SSHUserInfo implements UserInfo, UIKeyboardInteractive {
this.keyfile = keyfile;
this.keyfile = keyfile;
}
}
// (NOTE: this method does not seem to be called
/**
/**
* Whether to prompt for a passphas e.
* Implement the UserInfo interfac e.
* @param message ignored
* @param message ignored
* @return true always
* @return true always
*/
*/
@@ -164,35 +162,27 @@ public class SSHUserInfo implements UserInfo, UIKeyboardInteractive {
return true;
return true;
}
}
// (NOTE: this method does not seem to be called
/**
/**
* Whether to prompt for a password .
* Implement the UserInfo interface .
* @param passwordPrompt ignored
* @param passwordPrompt ignored
* @return true the first time this is called, false otherwise
* @return true the first time this is called, false otherwise
*/
*/
public boolean promptPassword(String passwordPrompt) {
public boolean promptPassword(String passwordPrompt) {
//log(passwordPrompt, Project.MSG_DEBUG);
if (firstTime) {
firstTime = false;
return true;
}
return firstTime;
return true;
}
}
// (NOTE: this method does not seem to be called
/**
/**
* Whether to prompt yes or no .
* Implement the UserInfo interface.
* @param message ignored
* @param message ignored
* @return the value of trustAllCertificates
* @return the value of trustAllCertificates
*/
*/
public boolean promptYesNo(String message) {
public boolean promptYesNo(String message) {
//log(prompt, Project.MSG_DEBUG);
return trustAllCertificates;
return trustAllCertificates;
}
}
// (NOTE: this method does not seem to be called
//why do we do nothing?
/**
/**
* Do nothing .
* Implement the UserInfo interface (noop) .
* @param message ignored
* @param message ignored
*/
*/
public void showMessage(String message) {
public void showMessage(String message) {