com.sptci.auth
Class User

java.lang.Object
  extended by com.sptci.auth.User

public class User
extends Object

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.

Version:
$Id: User.java 3251 2007-05-12 19:09:12Z rakesh $
Author:
Rakesh Vidyadharan 2006-11-15

Field Summary
 Collection<Group> groups
          The collection of groups to which this user belongs.
 String password
          The password of the user.
 String userName
          The userName of the user.
 
Constructor Summary
User(String userName, String password, Collection<Group> groups)
          Create a new instance using the specified values.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userName

public final String userName
The userName of the user.


password

public final transient String password
The password of the user.


groups

public final Collection<Group> groups
The collection of groups to which this user belongs.

Constructor Detail

User

public User(String userName,
            String password,
            Collection<Group> groups)
Create a new instance using the specified values.

Parameters:
userName - The userName value to use.
password - The password value to use.
groups - The groups value to use.