org.jminor.common.model
Class User

java.lang.Object
  extended by org.jminor.common.model.User
All Implemented Interfaces:
Serializable

public final class User
extends Object
implements Serializable

A class encapsulating a username and password.

See Also:
Serialized Form

Field Summary
static User UNIT_TEST_USER
           
static String UNITTEST_PASSWORD_PROPERTY
           
static String UNITTEST_USERNAME_PROPERTY
           
 
Constructor Summary
User(String username, String password)
          Instantiates a new User.
 
Method Summary
 boolean equals(Object obj)
          
 String getPassword()
           
 String getUsername()
           
 int hashCode()
          
 void setPassword(String password)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNITTEST_USERNAME_PROPERTY

public static final String UNITTEST_USERNAME_PROPERTY
See Also:
Constant Field Values

UNITTEST_PASSWORD_PROPERTY

public static final String UNITTEST_PASSWORD_PROPERTY
See Also:
Constant Field Values

UNIT_TEST_USER

public static final User UNIT_TEST_USER
Constructor Detail

User

public User(String username,
            String password)
Instantiates a new User.

Parameters:
username - the username
password - the password
Method Detail

getUsername

public String getUsername()
Returns:
the username

setPassword

public void setPassword(String password)
Parameters:
password - the password

getPassword

public String getPassword()
Returns:
the password

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object