|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.resources.AttributeHolder org.w3c.tools.resources.Resource org.w3c.jigsaw.auth.AuthUser
public class AuthUser
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.
Field Summary | |
---|---|
protected static int |
ATTR_COMMENTS
Attribute index - The comments for this user. |
protected static int |
ATTR_EMAIL
Attribute index - The email adress of the user. |
protected static int |
ATTR_GROUPS
Attribute index - The list of groups this user belongs to. |
protected static int |
ATTR_IPADDR
Attribute index - The IP adress of the user. |
protected static int |
ATTR_PASSWORD
Attribute index - The optional password for the user. |
Fields inherited from class org.w3c.tools.resources.Resource |
---|
ATTR_CONTEXT, ATTR_HELP_URL, ATTR_IDENTIFIER, ATTR_LAST_MODIFIED, ATTR_PARENT, ATTR_RESOURCE_FRAMES, ATTR_STORE_ENTRY, ATTR_URL, co, id |
Fields inherited from class org.w3c.tools.resources.AttributeHolder |
---|
attributes, values |
Constructor Summary | |
---|---|
AuthUser()
|
Method Summary | |
---|---|
java.lang.String |
getComments()
Get the user associated comments. |
java.lang.String |
getEmail()
Get the user email address. |
java.lang.String[] |
getGroups()
Get the user groups. |
short[][] |
getIPTemplates()
Get the user IP templates. |
java.lang.String |
getName()
Get this user's name. |
java.lang.String |
getPassword()
Get the user password. |
static AuthUser |
makeUser(Resource res,
java.lang.String name,
ResourceContext context)
Create a new user. |
static AuthUser |
makeUser(java.lang.String name,
ResourceContext context)
Create a new user. |
void |
setPassword(java.lang.String passwd)
Set a new password for this user. |
Methods inherited from class org.w3c.tools.resources.Resource |
---|
acceptUnload, checkMultipleLock, collectFrames, delete, getClone, getContext, getFrame, getFrames, getHelpURL, getHelpURL, getIdentifier, getLastModified, getParent, getResourceReference, getServer, getSpace, getSpaceEntry, getStoreEntry, getURLPath, getValue, getValue, initialize, initialize, isInitialized, isUnloaded, markModified, notifyUnload, pickleValues, registerFrame, setContext, setContext, setValue, setValue, unregisterFrame, unsafeGetContext, unsafeGetFrame, unsafeGetFrames, unsafeGetIdentifier, unsafeGetResourceReference, unsafeGetURLPath, unsafeGetValue, updateAttributes |
Methods inherited from class org.w3c.tools.resources.AttributeHolder |
---|
definesAttribute, definesAttribute, getAttributes, getBoolean, getChar, getClone, getClone, getDouble, getFloat, getInt, getLong, getString, getValue, lookupAttribute, print, setBoolean, setChar, setDouble, setFloat, setInt, setLong, setString, setValue, unsafeDefinesAttribute, unsafeGetDouble, unsafeGetString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static int ATTR_EMAIL
protected static int ATTR_COMMENTS
protected static int ATTR_IPADDR
protected static int ATTR_PASSWORD
protected static int ATTR_GROUPS
Constructor Detail |
---|
public AuthUser()
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getEmail()
public java.lang.String getComments()
public short[][] getIPTemplates()
public java.lang.String getPassword()
public void setPassword(java.lang.String passwd)
passwd
- The new user's password.public java.lang.String[] getGroups()
public static AuthUser makeUser(java.lang.String name, ResourceContext context)
name
- The user's name.public static AuthUser makeUser(Resource res, java.lang.String name, ResourceContext context)
name
- The user's name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |