Package fr.ifremer.isisfish.util.ssh
Class SSHUserInfo
java.lang.Object
fr.ifremer.isisfish.util.ssh.SSHUserInfo
- All Implemented Interfaces:
com.jcraft.jsch.UIKeyboardInteractive
,com.jcraft.jsch.UserInfo
public class SSHUserInfo
extends Object
implements com.jcraft.jsch.UserInfo, com.jcraft.jsch.UIKeyboardInteractive
Class used to ask used for connection info.
Password, passphrase...
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
Modifier and TypeFieldDescriptionboolean
protected String
Passphrase.protected String
Password text field.protected JPasswordField
Password text field. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
promptKeyboardInteractive
(String destination, String name, String instruction, String[] prompt, boolean[] echo) boolean
promptPassphrase
(String message) boolean
promptPassword
(String message) boolean
promptYesNo
(String str) Call to ask user in remote server key can be trusted.void
setPassphrase
(String passphrase) void
void
showMessage
(String message)
-
Field Details
-
passphrase
Passphrase. Static to be stored on multiple connexion. -
passwd
Password text field. -
passwordField
Password text field. -
forceNewPassword
public boolean forceNewPassword
-
-
Constructor Details
-
SSHUserInfo
public SSHUserInfo()
-
-
Method Details
-
promptYesNo
Call to ask user in remote server key can be trusted. Here, auto accept.- Specified by:
promptYesNo
in interfacecom.jcraft.jsch.UserInfo
-
getPassphrase
- Specified by:
getPassphrase
in interfacecom.jcraft.jsch.UserInfo
-
getPassword
- Specified by:
getPassword
in interfacecom.jcraft.jsch.UserInfo
-
getPasswd
- Returns:
- the passwd
-
setPasswd
- Parameters:
passwd
- the passwd to set
-
setPassphrase
- Parameters:
passphrase
- the passphrase to set
-
promptPassphrase
- Specified by:
promptPassphrase
in interfacecom.jcraft.jsch.UserInfo
-
promptPassword
- Specified by:
promptPassword
in interfacecom.jcraft.jsch.UserInfo
-
showMessage
- Specified by:
showMessage
in interfacecom.jcraft.jsch.UserInfo
-
promptKeyboardInteractive
public String[] promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo) - Specified by:
promptKeyboardInteractive
in interfacecom.jcraft.jsch.UIKeyboardInteractive
-