Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.ssh
Class SSHUserInfo

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.ssh.SSHUserInfo
All Implemented Interfaces:
com.jcraft.jsch.UIKeyboardInteractive, com.jcraft.jsch.UserInfo

 class SSHUserInfo
extends Object
implements com.jcraft.jsch.UserInfo, com.jcraft.jsch.UIKeyboardInteractive

SSHUserInfo passes authentication details to JSch SSH Stack

Author:
Shobhit Jindal

Field Summary
(package private)  JTextField passwordField
          Password field for requesting auth details from user
 
Constructor Summary
SSHUserInfo(ContactSSH sshContact)
          Creates a UserInfo instance
 
Method Summary
 String getPassphrase()
          Passphrase authentication presently not implemented
 String getPassword()
          Returns the password of account associated with this contact
 String[] promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo)
          Keyboard Interactive Auth - not implemented
 boolean promptPassphrase(String message)
          Passphrase authentication presently not implemented
 boolean promptPassword(String message)
          Asks user to re-enter password information in case of an auth failure
 boolean promptYesNo(String str)
          Prompt for accepting the cipher information of the remote server
 void showMessage(String message)
          Shows a message from server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passwordField

JTextField passwordField
Password field for requesting auth details from user

Constructor Detail

SSHUserInfo

SSHUserInfo(ContactSSH sshContact)
Creates a UserInfo instance

Parameters:
sshContact - the contact concerned
Method Detail

getPassword

public String getPassword()
Returns the password of account associated with this contact

Specified by:
getPassword in interface com.jcraft.jsch.UserInfo
Returns:
the password of account associated with this contact

promptYesNo

public boolean promptYesNo(String str)
Prompt for accepting the cipher information of the remote server

Specified by:
promptYesNo in interface com.jcraft.jsch.UserInfo
Parameters:
str - the string to display
Returns:
the user's answer

getPassphrase

public String getPassphrase()
Passphrase authentication presently not implemented

Specified by:
getPassphrase in interface com.jcraft.jsch.UserInfo
Returns:
null

promptPassphrase

public boolean promptPassphrase(String message)
Passphrase authentication presently not implemented

Specified by:
promptPassphrase in interface com.jcraft.jsch.UserInfo
Returns:
true

promptPassword

public boolean promptPassword(String message)
Asks user to re-enter password information in case of an auth failure

Specified by:
promptPassword in interface com.jcraft.jsch.UserInfo
Parameters:
message - the message to display
Returns:
the user's answer

showMessage

public void showMessage(String message)
Shows a message from server

Specified by:
showMessage in interface com.jcraft.jsch.UserInfo
Parameters:
message - The message to display

promptKeyboardInteractive

public String[] promptKeyboardInteractive(String destination,
                                          String name,
                                          String instruction,
                                          String[] prompt,
                                          boolean[] echo)
Keyboard Interactive Auth - not implemented

Specified by:
promptKeyboardInteractive in interface com.jcraft.jsch.UIKeyboardInteractive

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.