Interface SshConnectionOptions.KeyboardInteractive

Enclosing class:
SshConnectionOptions
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SshConnectionOptions.KeyboardInteractive
Supplies responses for JSch keyboard-interactive authentication prompts.
  • Method Summary

    Modifier and Type
    Method
    Description
    respond(String destination, String name, String instruction, String[] prompt, boolean[] echo)
     
  • Method Details

    • respond

      String[] respond(String destination, String name, String instruction, String[] prompt, boolean[] echo)
      Parameters:
      destination - remote host identifier
      name - authentication method name
      instruction - server instruction text
      prompt - prompt labels
      echo - whether each response should be echoed
      Returns:
      one response per prompt