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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String prompt​(boolean echo, java.lang.String prompt, int round)
      Answer a server-issued prompt.
    • Method Detail

      • prompt

        java.lang.String prompt​(boolean echo,
                                java.lang.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