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 Details

    • passphrase

      protected String passphrase
      Passphrase. Static to be stored on multiple connexion.
    • passwd

      protected String passwd
      Password text field.
    • passwordField

      protected JPasswordField passwordField
      Password text field.
    • forceNewPassword

      public boolean forceNewPassword
  • Constructor Details

    • SSHUserInfo

      public SSHUserInfo()
  • Method Details

    • promptYesNo

      public boolean promptYesNo(String str)
      Call to ask user in remote server key can be trusted. Here, auto accept.
      Specified by:
      promptYesNo in interface com.jcraft.jsch.UserInfo
    • getPassphrase

      public String getPassphrase()
      Specified by:
      getPassphrase in interface com.jcraft.jsch.UserInfo
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface com.jcraft.jsch.UserInfo
    • getPasswd

      public String getPasswd()
      Returns:
      the passwd
    • setPasswd

      public void setPasswd(String passwd)
      Parameters:
      passwd - the passwd to set
    • setPassphrase

      public void setPassphrase(String passphrase)
      Parameters:
      passphrase - the passphrase to set
    • promptPassphrase

      public boolean promptPassphrase(String message)
      Specified by:
      promptPassphrase in interface com.jcraft.jsch.UserInfo
    • promptPassword

      public boolean promptPassword(String message)
      Specified by:
      promptPassword in interface com.jcraft.jsch.UserInfo
    • showMessage

      public void showMessage(String message)
      Specified by:
      showMessage in interface com.jcraft.jsch.UserInfo
    • promptKeyboardInteractive

      public String[] promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo)
      Specified by:
      promptKeyboardInteractive in interface com.jcraft.jsch.UIKeyboardInteractive