ssh
Class MyUserInfo
java.lang.Object
ssh.MyUserInfo
- All Implemented Interfaces:
- com.jcraft.jsch.UIKeyboardInteractive, com.jcraft.jsch.UserInfo
public class MyUserInfo
- extends java.lang.Object
- implements com.jcraft.jsch.UserInfo, com.jcraft.jsch.UIKeyboardInteractive
A wrapper class for the jsch libraries. It is used to
store information about the user. It is largely written
based on their example and reverse-engineering.
- Author:
- Diana Abbas, Ryan Neal
Constructor Summary |
MyUserInfo(java.lang.String pass)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyUserInfo
public MyUserInfo(java.lang.String pass)
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interface com.jcraft.jsch.UserInfo
getPassphrase
public java.lang.String getPassphrase()
- Specified by:
getPassphrase
in interface com.jcraft.jsch.UserInfo
setPassword
public void setPassword(java.lang.String pass)
promptYesNo
public boolean promptYesNo(java.lang.String str)
- Specified by:
promptYesNo
in interface com.jcraft.jsch.UserInfo
promptPassphrase
public boolean promptPassphrase(java.lang.String message)
- Specified by:
promptPassphrase
in interface com.jcraft.jsch.UserInfo
promptPassword
public boolean promptPassword(java.lang.String message)
- Specified by:
promptPassword
in interface com.jcraft.jsch.UserInfo
showMessage
public void showMessage(java.lang.String message)
- Specified by:
showMessage
in interface com.jcraft.jsch.UserInfo
promptKeyboardInteractive
public java.lang.String[] promptKeyboardInteractive(java.lang.String destination,
java.lang.String name,
java.lang.String instruction,
java.lang.String[] prompt,
boolean[] echo)
- called by Session Connect to do authentication.
if the pass is set it just uses that, otherwise it
prompts the user for it.
- Specified by:
promptKeyboardInteractive
in interface com.jcraft.jsch.UIKeyboardInteractive