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
FieldsModifier and TypeFieldDescriptionbooleanprotected StringPassphrase.protected StringPassword text field.protected JPasswordFieldPassword text field. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo) booleanpromptPassphrase(String message) booleanpromptPassword(String message) booleanpromptYesNo(String str) Call to ask user in remote server key can be trusted.voidsetPassphrase(String passphrase) voidvoidshowMessage(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:
promptYesNoin interfacecom.jcraft.jsch.UserInfo
-
getPassphrase
- Specified by:
getPassphrasein interfacecom.jcraft.jsch.UserInfo
-
getPassword
- Specified by:
getPasswordin 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:
promptPassphrasein interfacecom.jcraft.jsch.UserInfo
-
promptPassword
- Specified by:
promptPasswordin interfacecom.jcraft.jsch.UserInfo
-
showMessage
- Specified by:
showMessagein interfacecom.jcraft.jsch.UserInfo
-
promptKeyboardInteractive
public String[] promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo) - Specified by:
promptKeyboardInteractivein interfacecom.jcraft.jsch.UIKeyboardInteractive
-