anon.util
Class SingleStringPasswordReader

java.lang.Object
  extended by anon.util.SingleStringPasswordReader
All Implemented Interfaces:
IMiscPasswordReader

public class SingleStringPasswordReader
extends java.lang.Object
implements IMiscPasswordReader

Author:
Rolf Wendolsky

Field Summary
private  char[] m_password
           
 
Constructor Summary
SingleStringPasswordReader(char[] a_password)
           
SingleStringPasswordReader(java.lang.String a_password)
           
 
Method Summary
 void clear()
           
 java.lang.String readPassword(java.lang.Object a_message)
          Reads a password from a user interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_password

private char[] m_password
Constructor Detail

SingleStringPasswordReader

public SingleStringPasswordReader(java.lang.String a_password)

SingleStringPasswordReader

public SingleStringPasswordReader(char[] a_password)
Method Detail

readPassword

public java.lang.String readPassword(java.lang.Object a_message)
Description copied from interface: IMiscPasswordReader
Reads a password from a user interface. Note: This method should return NULL only when the user pressed cancel. When an empty password was supplied, an empty but non-null string should be returned!!

Specified by:
readPassword in interface IMiscPasswordReader
Parameters:
a_message - a message that the user interface can display
Returns:
a password

clear

public void clear()