Package org.mariadb.jdbc.plugin
Interface AuthDialogCallback
-
public interface AuthDialogCallbackTypical use: a JDBC client registers an implementation that surfacespromptin its UI and returns the user's answer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringprompt(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-trueif the server expects normal input (info / echoed input);falseif it's a password-style prompt where the input should be hiddenprompt- prompt text the server sent (UTF-8, may be empty)round- the round number (>= 2)- Returns:
- the user's answer, or
nullto fall through to the legacypasswordNURL options
-
-