org.icenigrid.gridsam.client.cli
Class PasswordInput

java.lang.Object
  extended by org.icenigrid.gridsam.client.cli.PasswordInput

public class PasswordInput
extends java.lang.Object

Utility class for masking the input stream. Adapted from posting on java.sun.com http://java.sun.com/features/2002/09/pword_mask.html


Constructor Summary
PasswordInput()
           
 
Method Summary
static java.lang.String 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

PasswordInput

public PasswordInput()
Method Detail

getPassword

public static java.lang.String getPassword(java.lang.String prompt)
Parameters:
prompt - The prompt to display to the user.
Returns:
The password as entered by the user.


Copyright © 2009. All Rights Reserved.