| org.tigris.subversion.javahl.PromptUserPassword3
PromptUserPassword3 | public interface PromptUserPassword3 extends PromptUserPassword2(Code) | | 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.
|
Method Summary | |
public String | askQuestion(String realm, String question, boolean showAnswer, boolean maySave) Ask the user a question, and (usually) store the auth
credential caching preference specified by maySave
(used by
PromptUserPassword3.userAllowedSave() ). | public 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 by
maySave (used by
PromptUserPassword3.userAllowedSave() ).
Applications wanting to emulate the behavior of
--non-interactive will implement this method in a
manner which does not require user interaction (e.g. | public boolean | userAllowedSave() |
askQuestion | public String askQuestion(String realm, String question, boolean showAnswer, boolean maySave)(Code) | | Ask the user a question, and (usually) store the auth
credential caching preference specified by maySave
(used by
PromptUserPassword3.userAllowedSave() ). 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. Parameters: question - The text of the question. Parameters: showAnswer - Whether the answer may be displayed. Parameters: maySave - Whether caching of credentials is allowed.Usually affects the return value of the PromptUserPassword3.userAllowedSave() method. answer as entered or null if canceled |
prompt | public boolean prompt(String realm, String username, boolean maySave)(Code) | | Request a user name and password from the user, and (usually)
store the auth credential caching preference specified by
maySave (used by
PromptUserPassword3.userAllowedSave() ).
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. Parameters: username - The name of the user in realm . Parameters: maySave - Whether caching of credentials is allowed.Usually affects the return value of the PromptUserPassword3.userAllowedSave() method. Whether the prompt for authentication credentials wassuccessful (e.g. in a GUI application whether the dialog boxwas canceled). |
|
|