cnrg.itx.ds
Class Password
java.lang.Object
|
+--cnrg.itx.ds.Password
- public class Password
- extends java.lang.Object
This class provides an encapsulation to store user's password information.
Constructor Summary |
Password(java.lang.String strPW)
Constructor for String |
Method Summary |
java.lang.String |
toString()
Converts to string representation to be stored in the directory database |
boolean |
verified(Password inputPW)
Verify against a given password object |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Password
public Password(java.lang.String strPW)
- Constructor for String
- Parameters:
strPW
- input password string
verified
public boolean verified(Password inputPW)
- Verify against a given password object
- Parameters:
inputPW
- input password- Returns:
- true if verified successfully; false otherwise
toString
public java.lang.String toString()
- Converts to string representation to be stored in the directory database
- Returns:
- string representation of this Password object
- Overrides:
- toString in class java.lang.Object