success = conn.authenticateWithPublicKey(
rProject.getUsername(), keyFile, esd.getAnswer());
}
} else if (conn.isAuthMethodAvailable(rProject.getUsername(),
"keyboard-interactive")) {
InteractiveLogic il = new InteractiveLogic();
success = conn.authenticateWithKeyboardInteractive(rProject
.getUsername(), il);
if (il.getPromptCount() == 0)
throw new IOException("Keyboard-interactive does not work.");
} else if (conn.isAuthMethodAvailable(rProject.getUsername(),
"password")) {
final EnterInputDialog esd = new EnterInputDialog(JSimLogic
.getInstance().getFrame(), "Password Authentication",