Package org.tigris.subversion.javahl
Interface PromptUserPassword3
- All Superinterfaces:
PromptUserPassword
,PromptUserPassword2
public interface PromptUserPassword3 extends PromptUserPassword2
The interface for requesting authentication credentials from the user. Should the javahl bindings need the matching information, these methodes will be called.
This callback can also be used to provide the equivalent of the
--no-auth-cache
and --non-interactive
arguments accepted by the command-line client.
-
Field Summary
Fields inherited from interface org.tigris.subversion.javahl.PromptUserPassword2
AccecptTemporary, AcceptPermanently, AcceptTemporary, Reject
-
Method Summary
Modifier and Type Method Description String
askQuestion(String realm, String question, boolean showAnswer, boolean maySave)
Ask the user a question, and (usually) store the auth credential caching preference specified bymaySave
(used byuserAllowedSave()
).boolean
prompt(String realm, String username, boolean maySave)
Request a user name and password from the user, and (usually) store the auth credential caching preference specified bymaySave
(used byuserAllowedSave()
).boolean
userAllowedSave()
Methods inherited from interface org.tigris.subversion.javahl.PromptUserPassword
askQuestion, askYesNo, getPassword, getUsername, prompt
-
Method Details
-
prompt
Request a user name and password from the user, and (usually) store the auth credential caching preference specified bymaySave
(used byuserAllowedSave()
). Applications wanting to emulate the behavior of--non-interactive
will implement this method in a manner which does not require user interaction (e.g. a no-op which assumes pre-cached auth credentials).- Parameters:
realm
- The realm from which the question originates.username
- The name of the user inrealm
.maySave
- Whether caching of credentials is allowed. Usually affects the return value of theuserAllowedSave()
method.- Returns:
- Whether the prompt for authentication credentials was successful (e.g. in a GUI application whether the dialog box was canceled).
-
askQuestion
Ask the user a question, and (usually) store the auth credential caching preference specified bymaySave
(used byuserAllowedSave()
). Applications wanting to emulate the behavior of--non-interactive
will implement this method in a manner which does not require user interaction (e.g. a no-op).- Parameters:
realm
- The realm from which the question originates.question
- The text of the question.showAnswer
- Whether the answer may be displayed.maySave
- Whether caching of credentials is allowed. Usually affects the return value of theuserAllowedSave()
method.- Returns:
- answer as entered or null if canceled
-
userAllowedSave
boolean userAllowedSave()- Returns:
- Whether the caller allowed caching of credentials the
last time
prompt(String, String, boolean)
was called. Applications wanting to emulate the behavior of--no-auth-cache
will probably always returnfalse
.
-