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
Constructor Summary |
Password(char[] password)
Creates new Password |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Password
public Password(char[] password)
- Creates new Password
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()