| |
|
| java.lang.Object java.lang.Thread henplus.PasswordEraserThread
PasswordEraserThread | class PasswordEraserThread extends Thread (Code) | | Erase password as it is typed. Since we do not have access to
the tty in a way to switch off echoing, we constantly override
any stuff written with spaces. This is a hack, since it is kinda
busy process doing this in a loop and it may still expose letters
from the password for the fraction of a second. However, this is
better than nothing, right ?
|
Method Summary | |
public synchronized void | done() | public synchronized void | goOn() | public synchronized void | holdOn() | public void | run() Begin masking until asked to stop. |
PasswordEraserThread | public PasswordEraserThread(String prompt)(Code) | | Parameters: prompt - The prompt displayed to the user |
done | public synchronized void done()(Code) | | |
goOn | public synchronized void goOn()(Code) | | |
holdOn | public synchronized void holdOn()(Code) | | |
run | public void run()(Code) | | Begin masking until asked to stop.
|
|
|
|