org.eclipse.higgins.cardstore.manager
Class PasswordPrompt

java.lang.Object
  extended by org.eclipse.higgins.cardstore.manager.PasswordPrompt

public class PasswordPrompt
extends Object

This class prompts the user for a password and attempts to mask input with "*"


Constructor Summary
PasswordPrompt()
           
 
Method Summary
static char[] getPassword(InputStream in, String prompt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordPrompt

public PasswordPrompt()
Method Detail

getPassword

public static final char[] getPassword(InputStream in,
                                       String prompt)
                                throws IOException
Parameters:
input - stream to be used (e.g. System.in)
prompt - The prompt to display to the user.
Returns:
The password as entered by the user.
Throws:
IOException