All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.auth.AuthUser

java.lang.Object
   |
   +----w3c.tools.store.AttributeHolder
           |
           +----w3c.tools.store.Resource
                   |
                   +----w3c.jigsaw.auth.AuthUser

public class AuthUser
extends Resource
The basic description of a user. A user is defined by the following set of attributes: its name, its email adress, some comments. Than it can have either an IP adress, and/or a password.

If an IP adress is provided, the user will be authentified by its incoming connection IP address. Moreover, if a password is provided, before being authentified, the client will be challenged for it.

Finally a user can be registered in any number of groups.


Variable Index

 o ATTR_COMMENTS
Attribute index - The comments for this user.
 o ATTR_EMAIL
Attribute index - The email adress of the user.
 o ATTR_GROUPS
Attribute index - The list of groups this user belongs to.
 o ATTR_IPADDR
Attribute index - The IP adress of the user.
 o ATTR_PASSWORD
Attribute index - The optional password for the user.

Constructor Index

 o AuthUser()

Method Index

 o getComments()
Get the user associated comments.
 o getEmail()
Get the user email address.
 o getGroups()
Get the user groups.
 o getIPTemplates()
Get the user IP templates.
 o getName()
Get this user's name.
 o getPassword()
Get the user password.
 o makeUser(String)
Create a new user.
 o setPassword(String)
Set a new password for this user.

Variables

 o ATTR_EMAIL
 protected static int ATTR_EMAIL
Attribute index - The email adress of the user.

 o ATTR_COMMENTS
 protected static int ATTR_COMMENTS
Attribute index - The comments for this user.

 o ATTR_IPADDR
 protected static int ATTR_IPADDR
Attribute index - The IP adress of the user.

 o ATTR_PASSWORD
 protected static int ATTR_PASSWORD
Attribute index - The optional password for the user.

 o ATTR_GROUPS
 protected static int ATTR_GROUPS
Attribute index - The list of groups this user belongs to.

Constructors

 o AuthUser
 public AuthUser()

Methods

 o getName
 public String getName()
Get this user's name. We use the resource identifier as the user name here.

 o getEmail
 public String getEmail()
Get the user email address.

 o getComments
 public String getComments()
Get the user associated comments.

 o getIPTemplates
 public short[][] getIPTemplates()
Get the user IP templates.

 o getPassword
 public String getPassword()
Get the user password.

 o setPassword
 public void setPassword(String passwd)
Set a new password for this user.

Parameters:
passwd - The new user's password.
 o getGroups
 public String[] getGroups()
Get the user groups.

 o makeUser
 public static AuthUser makeUser(String name)
Create a new user.

Parameters:
name - The user's name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index