Interface AuthDialogCallback


public interface AuthDialogCallback
Typical use: a JDBC client registers an implementation that surfaces prompt in its UI and returns the user's answer.
  • Method Summary

    Modifier and Type
    Method
    Description
    prompt(boolean echo, String prompt, int round)
    Answer a server-issued prompt.
  • Method Details

    • prompt

      String prompt(boolean echo, String prompt, int round)
      Answer a server-issued prompt.
      Parameters:
      echo - true if the server expects normal input (info / echoed input); false if it's a password-style prompt where the input should be hidden
      prompt - prompt text the server sent (UTF-8, may be empty)
      round - the round number (>= 2)
      Returns:
      the user's answer, or null to fall through to the legacy passwordN URL options