java.lang.Object
com.marginallyclever.communications.transport.ssh.SSHShell.MyUserInfo
All Implemented Interfaces:
com.jcraft.jsch.UIKeyboardInteractive, com.jcraft.jsch.UserInfo
Enclosing class:
SSHShell

public static class SSHShell.MyUserInfo extends Object implements com.jcraft.jsch.UserInfo, com.jcraft.jsch.UIKeyboardInteractive
user info for authentication.
  • Constructor Details

    • MyUserInfo

      public MyUserInfo()
  • Method Details

    • getPassword

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

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

      public String getPassphrase()
      Specified by:
      getPassphrase in interface com.jcraft.jsch.UserInfo
    • 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