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

Class TraditionalUIKeyboardInteractive

Implemented Interfaces:
UIKeyboardInteractive

public class TraditionalUIKeyboardInteractive
extends java.lang.Object
implements 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.

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

Constructor Summary

TraditionalUIKeyboardInteractive(AuthenticationInfo authInfo)

Method Summary

String[]
promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo)

Constructor Details

TraditionalUIKeyboardInteractive

public TraditionalUIKeyboardInteractive(AuthenticationInfo authInfo)

Method Details

promptKeyboardInteractive

public String[] promptKeyboardInteractive(String destination,
                                          String name,
                                          String instruction,
                                          String[] prompt,
                                          boolean[] echo)
See Also:
UIKeyboardInteractive.promptKeyboardInteractive(String,String, String,String[],boolean[])