Classes | |
class | KeyboardInteractiveDialog |
Public Member Functions | |
RemoteUserInfo (Shell shell) | |
void | setInfo (String user, String hostname, int port) |
boolean | promptPassword (String message) |
Prompts the user for a password used for authentication for the remote server. | |
String | getPassword () |
Returns the password entered by the user. | |
boolean | promptPassphrase (String message) |
Prompts the user for a passphrase for a public key. | |
String | getPassphrase () |
Returns the passphrase entered by the user. | |
boolean | promptYesNo (String message) |
void | showMessage (String message) |
String[] | promptKeyboardInteractive (String destination, String name, String instruction, String[] prompt, boolean[] echo) |
Private Attributes | |
final Shell | shell |
String | password |
String | user |
String | hostname |
int | port |
Definition at line 26 of file RemoteUserInfo.java.
edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.RemoteUserInfo | ( | Shell | shell | ) |
Definition at line 35 of file RemoteUserInfo.java.
String edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.getPassphrase | ( | ) |
Returns the passphrase entered by the user.
This should be only called after a successful promptPassphrase.
Implements com.jcraft.jsch.UserInfo.
Definition at line 76 of file RemoteUserInfo.java.
String edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.getPassword | ( | ) |
Returns the password entered by the user.
This should be only called after a successful promptPassword.
Implements com.jcraft.jsch.UserInfo.
Definition at line 66 of file RemoteUserInfo.java.
References edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.password.
String [] edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptKeyboardInteractive | ( | String | destination, | |
String | name, | |||
String | instruction, | |||
String[] | prompt, | |||
boolean[] | echo | |||
) |
Definition at line 92 of file RemoteUserInfo.java.
References edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.KeyboardInteractiveDialog.inputs, and edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.shell.
boolean edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptPassphrase | ( | String | message | ) |
Prompts the user for a passphrase for a public key.
message | the prompt message to be shown to the user. |
Implements com.jcraft.jsch.UserInfo.
Definition at line 71 of file RemoteUserInfo.java.
boolean edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptPassword | ( | String | message | ) |
Prompts the user for a password used for authentication for the remote server.
message | the prompt string to be shown to the user. |
Implements com.jcraft.jsch.UserInfo.
Definition at line 53 of file RemoteUserInfo.java.
References edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.hostname, edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.password, edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.port, edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.shell, and edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.user.
boolean edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptYesNo | ( | String | message | ) |
Definition at line 81 of file RemoteUserInfo.java.
void edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.setInfo | ( | String | user, | |
String | hostname, | |||
int | port | |||
) |
Definition at line 41 of file RemoteUserInfo.java.
Referenced by edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.createSSHTunnel().
void edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.showMessage | ( | String | message | ) |
Definition at line 86 of file RemoteUserInfo.java.
References edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.shell.
String edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.hostname [private] |
Definition at line 32 of file RemoteUserInfo.java.
Referenced by edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptPassword().
String edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.password [private] |
Definition at line 31 of file RemoteUserInfo.java.
Referenced by edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.getPassword(), and edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptPassword().
int edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.port [private] |
Definition at line 33 of file RemoteUserInfo.java.
Referenced by edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptPassword().
final Shell edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.shell [private] |
Definition at line 29 of file RemoteUserInfo.java.
Referenced by edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptKeyboardInteractive(), edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptPassword(), and edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.showMessage().
String edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.user [private] |
Definition at line 32 of file RemoteUserInfo.java.
Referenced by edu.rice.cs.hpc.remote.tunnel.RemoteUserInfo.promptPassword().