com.croftsoft.core.security
Class Authentication

java.lang.Object
  extended by com.croftsoft.core.security.Authentication
All Implemented Interfaces:
Serializable, Cloneable

public final class Authentication
extends Object
implements Cloneable, Serializable

Stores a username/password pair.

Since:
2001-04-12
Version:
2003-06-17
See Also:
Serialized Form
Author:
David W. Croft

Constructor Summary
Authentication(String username, String password)
          Main constructor.
 
Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 String getPassword()
           
 String getUsername()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authentication

public Authentication(String username,
                      String password)
Main constructor.

Throws:
NullArgumentException - If username is null.
Method Detail

getUsername

public String getUsername()

getPassword

public String getPassword()

clone

public Object clone()
Overrides:
clone in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)