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

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

public class TraditionalUIKeyboardInteractive
extends java.lang.Object
implements com.jcraft.jsch.UIKeyboardInteractive

A conservative UIKeyboardInteractive that avoids real user interaction :). This implementation expects only one prompt with the word password in it.

UIKeyboardInteractive are usefull when you don't use user with password authentication with a server that use keyboard-interactive and doesn't allow password method PasswordAuthentication no.

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

Field Summary
private  org.apache.maven.wagon.authentication.AuthenticationInfo authInfo
           
 
Constructor Summary
TraditionalUIKeyboardInteractive(org.apache.maven.wagon.authentication.AuthenticationInfo authInfo)
           
 
Method Summary
 java.lang.String[] promptKeyboardInteractive(java.lang.String destination, java.lang.String name, java.lang.String instruction, java.lang.String[] prompt, boolean[] echo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authInfo

private final org.apache.maven.wagon.authentication.AuthenticationInfo authInfo
Constructor Detail

TraditionalUIKeyboardInteractive

public TraditionalUIKeyboardInteractive(org.apache.maven.wagon.authentication.AuthenticationInfo authInfo)
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[])