com.iplanet.trustbase.security.store
Class Password

java.lang.Object
  |
  +--com.iplanet.trustbase.security.store.Password
All Implemented Interfaces:
PasswordCallback

public class Password
extends java.lang.Object
implements PasswordCallback

Password holds a users password in a char array. a char array is used rather than a String to allow the password to be erased. Password also implements PasswordCallback, so it can be supplied as a simple PasswordCallback parameter


Inner classes inherited from class com.iplanet.trustbase.security.store.PasswordCallback
PasswordCallback.GiveUpException
 
Constructor Summary
Password(char[] password)
          Creates new Password
 
Method Summary
 char[] getPasswordChars()
           
 Password readPassword(java.lang.String displayText)
          called on a first attempt to read a password
 Password readPasswordAgain(java.lang.String displayText)
          called on a second or subsequent attempt to read a password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Password

public Password(char[] password)
Creates new Password
Method Detail

readPassword

public Password readPassword(java.lang.String displayText)
Description copied from interface: PasswordCallback
called on a first attempt to read a password
Specified by:
readPassword in interface PasswordCallback

readPasswordAgain

public Password readPasswordAgain(java.lang.String displayText)
                           throws PasswordCallback.GiveUpException
Description copied from interface: PasswordCallback
called on a second or subsequent attempt to read a password
Specified by:
readPasswordAgain in interface PasswordCallback

getPasswordChars

public char[] getPasswordChars()