|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.PasswordData
public class PasswordData
PasswordData contains the information used by rules to perform
password validation.
| Constructor Summary | |
|---|---|
PasswordData()
This will create a new PasswordData. |
|
PasswordData(Password p)
This will create a new PasswordData with the supplied
password. |
|
| Method Summary | |
|---|---|
void |
addPasswordSource(java.lang.String source,
java.lang.String pass)
This will add the supplied password as a password source. |
Password |
getPassword()
Get the password. |
java.util.List<java.lang.String> |
getPasswordHistory()
This will return the password history. |
java.util.Map<java.lang.String,java.lang.String> |
getPasswordSources()
This will return the password sources. |
java.lang.String |
getUsername()
Get the username. |
void |
setPassword(Password p)
Set the password. |
void |
setPasswordHistory(java.util.List<java.lang.String> l)
This will set the password history. |
void |
setPasswordSources(java.util.Map<java.lang.String,java.lang.String> m)
This will set the password sources. |
void |
setUsername(java.lang.String s)
Set the username. |
java.lang.String |
toString()
This returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordData()
PasswordData.
public PasswordData(Password p)
PasswordData with the supplied
password.
p - Password| Method Detail |
|---|
public void setPassword(Password p)
p - Passwordpublic Password getPassword()
Passwordpublic void setUsername(java.lang.String s)
s - Stringpublic java.lang.String getUsername()
Stringpublic java.util.List<java.lang.String> getPasswordHistory()
List of password historypublic void setPasswordHistory(java.util.List<java.lang.String> l)
l - List of password historypublic java.util.Map<java.lang.String,java.lang.String> getPasswordSources()
Map of password sourcespublic void setPasswordSources(java.util.Map<java.lang.String,java.lang.String> m)
m - Map of password sources
public void addPasswordSource(java.lang.String source,
java.lang.String pass)
source - String labelpass - String to add
java.lang.NullPointerException - if source or password is nullpublic java.lang.String toString()
toString in class java.lang.ObjectString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||