Package org.tigris.subversion.javahl
Interface PromptUserPassword
- All Known Subinterfaces:
PromptUserPassword2
,PromptUserPassword3
,PromptUserPassword4
,PromptUserPasswordSSH
,PromptUserPasswordSSL
,PromptUserPasswordUser
public interface PromptUserPassword
The original interface for receiving callbacks for authentication.
Consider this code deprecated -- new applications should use
PromptUserPassword3 instead.
-
Method Summary
Modifier and TypeMethodDescriptionaskQuestion
(String realm, String question, boolean showAnswer) ask the user a question where she answers with a text.boolean
ask the user a yes/no questionretrieve the password entered during the prompt callretrieve the username entered during the prompt callboolean
Ask the user for username and password The entered username/password is retrieved by the getUsername getPasswort methods.
-
Method Details
-
prompt
Ask the user for username and password The entered username/password is retrieved by the getUsername getPasswort methods.- Parameters:
realm
- for which server realm this information is requested.username
- the default username- Returns:
- Whether the prompt for authentication credentials was successful (e.g. in a GUI application whether the dialog box was canceled).
-
askYesNo
ask the user a yes/no question- Parameters:
realm
- for which server realm this information is requested.question
- question to be askedyesIsDefault
- if yes should be the default- Returns:
- the answer
-
askQuestion
ask the user a question where she answers with a text.- Parameters:
realm
- for which server realm this information is requested.question
- question to be askedshowAnswer
- if the answer is shown or hidden- Returns:
- the entered text or null if canceled
-
getUsername
String getUsername()retrieve the username entered during the prompt call- Returns:
- the username
-
getPassword
String getPassword()retrieve the password entered during the prompt call- Returns:
- the password
-