edu.vt.middleware.password
Class PasswordData

java.lang.Object
  extended by edu.vt.middleware.password.PasswordData

public class PasswordData
extends java.lang.Object

PasswordData contains the information used by rules to perform password validation.

Version:
$Revision: 1643 $ $Date: 2010-10-07 13:14:08 -0400 (Thu, 07 Oct 2010) $
Author:
Middleware Services

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

PasswordData

public PasswordData()
This will create a new PasswordData.


PasswordData

public PasswordData(Password p)
This will create a new PasswordData with the supplied password.

Parameters:
p - Password
Method Detail

setPassword

public void setPassword(Password p)
Set the password.

Parameters:
p - Password

getPassword

public Password getPassword()
Get the password.

Returns:
Password

setUsername

public void setUsername(java.lang.String s)
Set the username.

Parameters:
s - String

getUsername

public java.lang.String getUsername()
Get the username.

Returns:
String

getPasswordHistory

public java.util.List<java.lang.String> getPasswordHistory()
This will return the password history.

Returns:
List of password history

setPasswordHistory

public void setPasswordHistory(java.util.List<java.lang.String> l)
This will set the password history.

Parameters:
l - List of password history

getPasswordSources

public java.util.Map<java.lang.String,java.lang.String> getPasswordSources()
This will return the password sources.

Returns:
Map of password sources

setPasswordSources

public void setPasswordSources(java.util.Map<java.lang.String,java.lang.String> m)
This will set the password sources.

Parameters:
m - Map of password sources

addPasswordSource

public void addPasswordSource(java.lang.String source,
                              java.lang.String pass)
This will add the supplied password as a password source.

Parameters:
source - String label
pass - String to add
Throws:
java.lang.NullPointerException - if source or password is null

toString

public java.lang.String toString()
This returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.