org.tigris.subversion.javahl
Interface PromptUserPassword

All Known Subinterfaces:
PromptUserPassword2, PromptUserPassword3

public interface PromptUserPassword

simple interface for receiving callbacks for authentification. new applications should use PromptUserPassword3 instead


Method Summary
 java.lang.String askQuestion(java.lang.String realm, java.lang.String question, boolean showAnswer)
          ask the user a question where she answers with a text.
 boolean askYesNo(java.lang.String realm, java.lang.String question, boolean yesIsDefault)
          ask the user a yes/no question
 java.lang.String getPassword()
          retrieve the password entered during the prompt call
 java.lang.String getUsername()
          retrieve the username entered during the prompt call
 boolean prompt(java.lang.String realm, java.lang.String username)
          Ask the user for username and password The entered username/password is retrieved by the getUsername getPasswort methods.
 

Method Detail

prompt

public boolean prompt(java.lang.String realm,
                      java.lang.String username)
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:
if the dialog was not cancelled

askYesNo

public boolean askYesNo(java.lang.String realm,
                        java.lang.String question,
                        boolean yesIsDefault)
ask the user a yes/no question
Parameters:
realm - for which server realm this information is requested.
question - question to be asked
yesIsDefault - if yes should be the default
Returns:
the answer

askQuestion

public java.lang.String askQuestion(java.lang.String realm,
                                    java.lang.String question,
                                    boolean showAnswer)
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 asked
showAnswer - if the answer is shown or hidden
Returns:
the entered text or null if canceled

getUsername

public java.lang.String getUsername()
retrieve the username entered during the prompt call
Returns:
the username

getPassword

public java.lang.String getPassword()
retrieve the password entered during the prompt call
Returns:
the password