|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.auth.User
public class User
A value object that represents a user object. This bean is used to store the values necessary to implement authentication and authorisation.
© Copyright 2006, Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
Collection<Group> |
groups
The collection of groups to which this user belongs. |
static int |
HASH
The default value for hash code. |
char[] |
password
The password of the user. |
String |
userName
The userName of the user. |
| Constructor Summary | |
|---|---|
User(String userName,
char[] password,
Collection<Group> groups)
Create a new instance using the specified values. |
|
User(String userName,
String password,
Collection<Group> groups)
Create a new instance using the specified values. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Compares the specified object with this instance for equality. |
int |
hashCode()
Calculate a hash code for the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String userName
public final transient char[] password
public final Collection<Group> groups
public static final int HASH
| Constructor Detail |
|---|
public User(String userName,
String password,
Collection<Group> groups)
userName - The userName value to use.password - The password value to use.groups - The groups value to use.
public User(String userName,
char[] password,
Collection<Group> groups)
userName - The userName value to use.password - The password value to use.groups - The groups value to use.| Method Detail |
|---|
public boolean equals(Object object)
equals in class Objectobject - The object that is to be tested for equality.
true if the specified object is of the
same type and has the same values.public int hashCode()
hashCode in class Object
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||