Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

Copyright:
==================================================================== Copyright (c) 2003-2005 CollabNet. All rights reserved. This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at http://subversion.tigris.org/license-1.html. If newer versions of this license are posted there, you may use a newer version instead, at your option. This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history and logs, available at http://subversion.tigris.org/. ====================================================================
Endcopyright:
package org.tigris.subversion.javahl;

The original interface for receiving callbacks for authentication. Consider this code deprecated -- new applications should use PromptUserPassword3 instead.
public interface PromptUserPassword
{
    
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:
Whether the prompt for authentication credentials was successful (e.g. in a GUI application whether the dialog box was canceled).
    public boolean prompt(String realmString username);

    
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
    public boolean askYesNo(String realmString question,
                            boolean yesIsDefault);

    
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
    public String askQuestion(String realmString question,
                              boolean showAnswer);

    
retrieve the username entered during the prompt call

Returns:
the username
    public String getUsername();

    
retrieve the password entered during the prompt call

Returns:
the password
    public String getPassword();
New to GrepCode? Check out our FAQ X