QuickServer
v1.4.7

org.quickserver.util.io
Class PasswordField

java.lang.Object
  extended byorg.quickserver.util.io.PasswordField

public class PasswordField
extends java.lang.Object

This class prompts the user for a password and attempts to mask input.

Since:
1.4

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

Constructor Detail

PasswordField

public PasswordField()
Method Detail

getPassword

public static final char[] getPassword(java.lang.String prompt)
                                throws java.io.IOException
Parameters:
prompt - The prompt to display to the user.
Returns:
The password as entered by the user.
Throws:
java.io.IOException

getPassword

public static final char[] getPassword(java.io.InputStream in,
                                       java.lang.String prompt)
                                throws java.io.IOException
Parameters:
in - 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

QuickServer
v1.4.7

Copyright © 2003-2006 QuickServer.org