3
* ====================================================================
4
* Copyright (c) 2003-2004 CollabNet. All rights reserved.
6
* This software is licensed as described in the file COPYING, which
7
* you should have received as part of this distribution. The terms
8
* are also available at http://subversion.tigris.org/license-1.html.
9
* If newer versions of this license are posted there, you may use a
10
* newer version instead, at your option.
12
* This software consists of voluntary contributions made by many
13
* individuals. For exact contribution history, see the revision
14
* history and logs, available at http://subversion.tigris.org/.
15
* ====================================================================
18
package org.tigris.subversion.javahl;
20
* this is the interface for requesting authentification information from the
21
* user. Should the javahl bindings need the matching information, these
22
* methodes will be called.
24
public interface PromptUserPassword3 extends PromptUserPassword2
27
* Request the password to be used from the user.
28
* the save data check box status will be queried by userAllowedSave
29
* @param realm realm for the username
30
* @param username username in the realm
31
* @param maySave should a save data check box be enabled.
32
* @return password as entered or null if canceled.
34
public boolean prompt(String realm, String username, boolean maySave);
36
* Ask the user a question about authentification
37
* the save data check box status will be queried by userAllowedSave
38
* @param realm real of the question
39
* @param question text of the question
40
* @param showAnswer flag if the answer should be displayed
41
* @param maySave should a save data check box be enabled.
42
* @return answer as entered or null if canceled
44
public String askQuestion(String realm, String question, boolean showAnswer, boolean maySave);
46
* query if the user allowed the saving of the data of the last call
47
* @return was the save data check box checked
49
public boolean userAllowedSave();