| java.lang.Object org.w3c.tools.resources.AttributeHolder org.w3c.tools.resources.Resource org.w3c.jigsaw.auth.AuthUser
AuthUser | public class AuthUser extends Resource (Code) | | 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. |
ATTR_COMMENTS | protected static int ATTR_COMMENTS(Code) | | Attribute index - The comments for this user.
|
ATTR_EMAIL | protected static int ATTR_EMAIL(Code) | | Attribute index - The email adress of the user.
|
ATTR_GROUPS | protected static int ATTR_GROUPS(Code) | | Attribute index - The list of groups this user belongs to.
|
ATTR_IPADDR | protected static int ATTR_IPADDR(Code) | | Attribute index - The IP adress of the user.
|
ATTR_PASSWORD | protected static int ATTR_PASSWORD(Code) | | Attribute index - The optional password for the user.
|
AuthUser | public AuthUser()(Code) | | |
getComments | public String getComments()(Code) | | Get the user associated comments.
|
getEmail | public String getEmail()(Code) | | Get the user email address.
|
getGroups | public String[] getGroups()(Code) | | Get the user groups.
|
getIPTemplates | public short[][] getIPTemplates()(Code) | | Get the user IP templates.
|
getName | public String getName()(Code) | | Get this user's name.
We use the resource identifier as the user name here.
|
getPassword | public String getPassword()(Code) | | Get the user password.
|
setPassword | public void setPassword(String passwd)(Code) | | Set a new password for this user.
Parameters: passwd - The new user's password. |
Methods inherited from org.w3c.tools.resources.AttributeHolder | public boolean definesAttribute(int idx) throws IllegalAttributeAccess(Code)(Java Doc) public boolean definesAttribute(String name) throws IllegalAttributeAccess(Code)(Java Doc) public Attribute[] getAttributes()(Code)(Java Doc) public boolean getBoolean(int idx, boolean def)(Code)(Java Doc) public char getChar(int idx, char def)(Code)(Java Doc) public Object getClone(Object values)(Code)(Java Doc) public synchronized Object getClone()(Code)(Java Doc) public synchronized Object getClone(Hashtable defs)(Code)(Java Doc) public double getDouble(int idx, double def)(Code)(Java Doc) public float getFloat(int idx, float def)(Code)(Java Doc) public int getInt(int idx, int def)(Code)(Java Doc) public long getLong(int idx, long def)(Code)(Java Doc) public String getString(int idx, String def)(Code)(Java Doc) public synchronized Object getValue(int idx, Object def) throws IllegalAttributeAccess(Code)(Java Doc) public Object getValue(String name, Object def) throws IllegalAttributeAccess(Code)(Java Doc) public synchronized void initialize(Object nvalues)(Code)(Java Doc) public synchronized void initialize(Hashtable defs)(Code)(Java Doc) public int lookupAttribute(String name)(Code)(Java Doc) public synchronized void pickleValues(Hashtable defs)(Code)(Java Doc) public void print(PrintStream out)(Code)(Java Doc) public void setBoolean(int idx, boolean b)(Code)(Java Doc) public void setChar(int idx, char ch) throws IllegalAttributeAccess(Code)(Java Doc) public void setDouble(int idx, double d) throws IllegalAttributeAccess(Code)(Java Doc) public void setFloat(int idx, float f) throws IllegalAttributeAccess(Code)(Java Doc) public void setInt(int idx, int i) throws IllegalAttributeAccess(Code)(Java Doc) public void setLong(int idx, long l) throws IllegalAttributeAccess(Code)(Java Doc) public void setString(int idx, String s) throws IllegalAttributeAccess(Code)(Java Doc) public synchronized void setValue(int idx, Object value)(Code)(Java Doc) public void setValue(String name, Object value)(Code)(Java Doc) public boolean unsafeDefinesAttribute(int idx) throws IllegalAttributeAccess(Code)(Java Doc) public double unsafeGetDouble(int idx, double def)(Code)(Java Doc) public String unsafeGetString(int idx, String def)(Code)(Java Doc) public Object unsafeGetValue(int idx, Object def) throws IllegalAttributeAccess(Code)(Java Doc)
|
|
|