net.sourceforge.simpleaim
Class MaskingThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--net.sourceforge.simpleaim.MaskingThread
All Implemented Interfaces:
java.lang.Runnable

public class MaskingThread
extends java.lang.Thread

This class erases characters echoed to the console (used for hiding passwords). There's no replacement; the display should show nothing. Due to threading, effectiveness may depend on amount of system load.

Author:
simpleaim.sourceforge.net

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MaskingThread(java.lang.String prompt)
          Constructor for the net.sourceforge.simpleaim.MaskingThread object
 
Method Summary
 void run()
          Main processing method for the net.sourceforge.simpleaim.MaskingThread object.
 void stopMasking()
          This method tells this class to stop masking text to the console.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaskingThread

public MaskingThread(java.lang.String prompt)
Constructor for the net.sourceforge.simpleaim.MaskingThread object

Parameters:
prompt - The prompt displayed to the user.
Method Detail

run

public void run()
Main processing method for the net.sourceforge.simpleaim.MaskingThread object.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

stopMasking

public void stopMasking()
This method tells this class to stop masking text to the console.