edu.washington.cs.rfid.security
Class PasswordField

java.lang.Object
  extended by edu.washington.cs.rfid.security.PasswordField

public class PasswordField
extends java.lang.Object

Implements a secure, masked password field.


Constructor Summary
PasswordField()
           
 
Method Summary
static char[] getPassword(java.io.InputStream in, java.lang.String prompt)
          Creates a new PasswordField with the specified parameters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordField

public PasswordField()
Method Detail

getPassword

public static final char[] getPassword(java.io.InputStream in,
                                       java.lang.String prompt)
                                throws java.io.IOException
Creates a new PasswordField with the specified parameters.

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:
java.io.IOException