CTL
Class Password

java.lang.Object
  extended by CTL.Password

public class Password
extends java.lang.Object

Taken from http://java.sun.com/developer/technicalArticles/Security/pwordmask/ Note: Insecure, because Strings are immutable


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

Constructor Detail

Password

public Password()
Method Detail

prompt

public static java.lang.String prompt()

getPassword

public static final char[] getPassword(java.io.InputStream in,
                                       java.lang.String prompt)
                                throws java.io.IOException
Throws:
java.io.IOException