|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.security.User
Description of the Class
Field Summary | |
static User |
DEFAULT
|
Constructor Summary | |
User(org.w3c.dom.Element node)
Read a new user from the given DOM node |
|
User(java.lang.String user)
Create a new user with name |
|
User(java.lang.String user,
java.lang.String password)
Create a new user with name and password |
|
User(java.lang.String user,
java.lang.String password,
java.lang.String primaryGroup)
Create a new user with name, password and primary group |
Method Summary | |
void |
addGroup(java.lang.String group)
Add the user to a group |
java.util.Iterator |
getGroups()
Get all groups this user belongs to |
java.lang.String |
getHome()
|
java.lang.String |
getName()
Get the user name |
java.lang.String |
getPassword()
Get the user's password |
java.lang.String |
getPrimaryGroup()
Get the primary group this user belongs to |
int |
getUID()
|
boolean |
hasGroup(java.lang.String group)
Is the user a member of group? |
void |
setHome(java.lang.String homeCollection)
|
void |
setPassword(java.lang.String passwd)
Sets the password attribute of the User object |
void |
setPasswordDigest(java.lang.String passwd)
Sets the passwordDigest attribute of the User object |
void |
setUID(int uid)
|
java.lang.String |
toString()
Description of the Method |
boolean |
validate(java.lang.String passwd)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final User DEFAULT
Constructor Detail |
public User(java.lang.String user, java.lang.String password)
user
- Description of the Parameterpassword
- Description of the Parameterpublic User(java.lang.String user)
user
- Description of the Parameterpublic User(java.lang.String user, java.lang.String password, java.lang.String primaryGroup)
user
- Description of the Parameterpassword
- Description of the ParameterprimaryGroup
- Description of the Parameterpublic User(org.w3c.dom.Element node) throws DatabaseConfigurationException
node
- Description of the Parameter
DatabaseConfigurationException
- Description of the ExceptionMethod Detail |
public final void addGroup(java.lang.String group)
group
- The feature to be added to the Group attributepublic final java.util.Iterator getGroups()
public final java.lang.String getName()
public final int getUID()
public final java.lang.String getPassword()
public final java.lang.String getPrimaryGroup()
public final boolean hasGroup(java.lang.String group)
group
- Description of the Parameter
public final void setPassword(java.lang.String passwd)
passwd
- The new password valuepublic final void setPasswordDigest(java.lang.String passwd)
passwd
- The new passwordDigest valuepublic final java.lang.String toString()
public final boolean validate(java.lang.String passwd)
public void setUID(int uid)
public void setHome(java.lang.String homeCollection)
public java.lang.String getHome()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |