com.croftsoft.core.security
Class Authentication
java.lang.Object
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
Authentication
public Authentication(String username,
String password)
- Main constructor.
- Throws:
NullArgumentException
- If username is null.
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 Core Javadoc (2008-09-28 20:58:02)