org.apache.maven.wagon.providers.ssh.jsch.interactive
Class UserInfoUIKeyboardInteractiveProxy

java.lang.Object
  extended by org.apache.maven.wagon.providers.ssh.jsch.interactive.UserInfoUIKeyboardInteractiveProxy
All Implemented Interfaces:
com.jcraft.jsch.UIKeyboardInteractive, com.jcraft.jsch.UserInfo

public class UserInfoUIKeyboardInteractiveProxy
extends java.lang.Object
implements com.jcraft.jsch.UserInfo, com.jcraft.jsch.UIKeyboardInteractive

A proxy that let you merge a UserInfo and a UIKeyboardInteractive

Since:
Sep 22, 2005
Author:
Juan F. Codagnone

Field Summary
private  com.jcraft.jsch.UIKeyboardInteractive interactive
           
private  com.jcraft.jsch.UserInfo userInfo
           
 
Constructor Summary
UserInfoUIKeyboardInteractiveProxy(com.jcraft.jsch.UserInfo userInfo, com.jcraft.jsch.UIKeyboardInteractive interactive)
           
 
Method Summary
 java.lang.String getPassphrase()
           
 java.lang.String getPassword()
           
 java.lang.String[] promptKeyboardInteractive(java.lang.String destination, java.lang.String name, java.lang.String instruction, java.lang.String[] prompt, boolean[] echo)
           
 boolean promptPassphrase(java.lang.String arg0)
           
 boolean promptPassword(java.lang.String arg0)
           
 boolean promptYesNo(java.lang.String arg0)
           
 void showMessage(java.lang.String arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interactive

private final com.jcraft.jsch.UIKeyboardInteractive interactive

userInfo

private final com.jcraft.jsch.UserInfo userInfo
Constructor Detail

UserInfoUIKeyboardInteractiveProxy

public UserInfoUIKeyboardInteractiveProxy(com.jcraft.jsch.UserInfo userInfo,
                                          com.jcraft.jsch.UIKeyboardInteractive interactive)
Method Detail

promptKeyboardInteractive

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

getPassphrase

public java.lang.String getPassphrase()
Specified by:
getPassphrase in interface com.jcraft.jsch.UserInfo
See Also:
UserInfo.getPassphrase()

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface com.jcraft.jsch.UserInfo
See Also:
UserInfo.getPassword()

promptPassword

public boolean promptPassword(java.lang.String arg0)
Specified by:
promptPassword in interface com.jcraft.jsch.UserInfo
See Also:
UserInfo.promptPassword(String)

promptPassphrase

public boolean promptPassphrase(java.lang.String arg0)
Specified by:
promptPassphrase in interface com.jcraft.jsch.UserInfo
See Also:
UserInfo.promptPassphrase(String)

promptYesNo

public boolean promptYesNo(java.lang.String arg0)
Specified by:
promptYesNo in interface com.jcraft.jsch.UserInfo
See Also:
UserInfo.promptYesNo(String)

showMessage

public void showMessage(java.lang.String arg0)
Specified by:
showMessage in interface com.jcraft.jsch.UserInfo
See Also:
UserInfo.showMessage(String)