symplik.flower
Class PasswordField

java.lang.Object
  extended by symplik.flower.PasswordField

public class PasswordField
extends java.lang.Object

A console (text-based) password input field

Version:
$Revision: 2 $
Author:
$Author: Christopher Ho $

Constructor Summary
PasswordField()
           
 
Method Summary
static char[] getPassword(java.io.InputStream in, 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.io.InputStream in,
                                       java.lang.String prompt)
                                throws java.io.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:
java.io.IOException


Copyright © 2010 Symplik Tech. Co. Ltd. All Rights Reserved.