com.mindbright.ssh2
public interface SSH2Interactor
Which of these functions are called and with which prompts are
provided is entirely up to the ssh-server. The server expects that
these functions will interact via graphical dialogs with the
user. Therefore the function calls includes things as instructions
and suggested names of dialogs and settings which tells if the user
should see what they type echo
or not, as when
entering passwords.
SSH2AuthKbdInteract
,
SSH2AuthPassword
Modifier and Type | Method and Description |
---|---|
java.lang.String |
promptLine(java.lang.String prompt,
boolean echo)
Prompt for a single string.
|
int |
promptList(java.lang.String name,
java.lang.String instruction,
java.lang.String[] choices)
This function is only used by AppGate internal code so there is
no need to actually implement it in any other code.
|
java.lang.String[] |
promptMulti(java.lang.String[] prompts,
boolean[] echos)
Prompt for multiple strings.
|
java.lang.String[] |
promptMultiFull(java.lang.String name,
java.lang.String instruction,
java.lang.String[] prompts,
boolean[] echos)
Prompt for multiple strings.
|
java.lang.String promptLine(java.lang.String prompt, boolean echo) throws SSH2UserCancelException
prompt
- The prompt string to showecho
- True if the text the user enters should be
echoed.SSH2UserCancelException
java.lang.String[] promptMulti(java.lang.String[] prompts, boolean[] echos) throws SSH2UserCancelException
prompts
- List of prompts to showechos
- List of boolean values which indicates if the
text entered for the corresponding prompt should
be echoed.SSH2UserCancelException
java.lang.String[] promptMultiFull(java.lang.String name, java.lang.String instruction, java.lang.String[] prompts, boolean[] echos) throws SSH2UserCancelException
name
- Suggested title of the dialoginstruction
- Instructions to show to user in the dialogprompts
- List of prompts to showechos
- List of boolean values which indicates if the
text entered for the corresponding prompt should
be echoed.SSH2UserCancelException
int promptList(java.lang.String name, java.lang.String instruction, java.lang.String[] choices) throws SSH2UserCancelException
It is used to let the user select one element in a list.
name
- Suggested title of dialoginstruction
- Instructions to show to userchoices
- Array of possible choicesSSH2UserCancelException