~svn/ubuntu/raring/subversion/ppa

« back to all changes in this revision

Viewing changes to subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/PromptUserPassword3.java

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:26:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205012614-qom4xfypgtsqc2xq
Tags: 1.2.3dfsg1-3ubuntu1
Merge with the final Debian release of 1.2.3dfsg1-3, bringing in
fixes to the clean target, better documentation of the libdb4.3
upgrade and build fixes to work with swig1.3_1.3.27.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @copyright
 
3
 * ====================================================================
 
4
 * Copyright (c) 2003-2004 CollabNet.  All rights reserved.
 
5
 *
 
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.
 
11
 *
 
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
 * ====================================================================
 
16
 * @endcopyright
 
17
 */
 
18
package org.tigris.subversion.javahl;
 
19
/**
 
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.
 
23
 */
 
24
public interface PromptUserPassword3 extends PromptUserPassword2
 
25
{
 
26
    /**
 
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.
 
33
     */
 
34
    public boolean prompt(String realm, String username, boolean maySave);
 
35
    /**
 
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
 
43
     */
 
44
    public String askQuestion(String realm, String question, boolean showAnswer, boolean maySave);
 
45
    /**
 
46
     * query if the user allowed the saving of the data of the last call
 
47
     * @return      was the save data check box checked
 
48
     */
 
49
    public boolean userAllowedSave();
 
50
}