    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.auth.AuthUser

    java.lang.Object
       |
       +----w3c.jigsaw.resources.AttributeHolder
               |
               +----w3c.jigsaw.resources.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.

##

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

##

AuthUser()

##

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

##

ATTR_EMAIL

      protected static int ATTR_EMAIL

  Attribute index - The email adress of the user.

ATTR_COMMENTS

      protected static int ATTR_COMMENTS

  Attribute index - The comments for this user.

ATTR_IPADDR

      protected static int ATTR_IPADDR

  Attribute index - The IP adress of the user.

ATTR_PASSWORD

      protected static int ATTR_PASSWORD

  Attribute index - The optional password for the user.

ATTR_GROUPS

      protected static int ATTR_GROUPS

  Attribute index - The list of groups this user belongs to.

##

AuthUser

      public AuthUser()

##

getName

      public String getName()

  Get this user's name. We use the resource identifier as the user name here.

getEmail

      public String getEmail()

  Get the user email address.

getComments

      public String getComments()

  Get the user associated comments.

getIPTemplates

      public short[][] getIPTemplates()

  Get the user IP templates.

getPassword

      public String getPassword()

  Get the user password.

getGroups

      public String[] getGroups()

  Get the user groups.

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