| |
|
| java.lang.Object org.objectweb.jonas.security.realm.principals.User
All known Subclasses: org.objectweb.jonas.security.realm.principals.LDAPUser,
User | public class User implements Principal,Serializable,UserMBean(Code) | | This class define the User class which represent a user by its name,
password, etc.
author: Florent Benoit (initial developer) author: Alexandre Thaveau (add DN for the certificates in method setName) author: Marc-Antoine Bourgeot (add DN for the certificates in method setName) |
SEPARATOR | final protected static String SEPARATOR(Code) | | Separator of the groups/roles
|
User | public User()(Code) | | Constructor
|
User | public User(String name, String password)(Code) | | Constructor with a given login / password
Parameters: name - the given name Parameters: password - the given password |
addGroup | public void addGroup(String group)(Code) | | Add the specified group to this user
Parameters: group - the group to add |
addRole | public void addRole(String role)(Code) | | Add a role to this user
Parameters: role - the given role |
getArrayGroups | public String[] getArrayGroups()(Code) | | Get the groups
the array of the groups |
getArrayRoles | public String[] getArrayRoles()(Code) | | Get the roles
the array of the roles |
getCombinedRoles | public ArrayList getCombinedRoles()(Code) | | Get the combined roles of this user
the combined of the user |
getGroups | public String getGroups()(Code) | | Get the groups
the comma separated list of groups |
getHashPassword | public HashPassword getHashPassword()(Code) | | Set the hashed password of this user
hashPassword hashed password of this user |
getName | public String getName()(Code) | | Get the name of this user
the name of this user |
getPassword | public String getPassword()(Code) | | Get the password of this user
the password of this user |
getRoles | public String getRoles()(Code) | | Get the roles
the array of the roles |
removeGroup | public void removeGroup(String group)(Code) | | Remove a group from this user
Parameters: group - the given group |
removeRole | public void removeRole(String role)(Code) | | Remove a role from this user
Parameters: role - the given role |
setCombinedRoles | public void setCombinedRoles(ArrayList combinedRoles)(Code) | | Set the combined roles of this user
Parameters: combinedRoles - combined of the user |
setGroups | public void setGroups(String groups)(Code) | | Set the groups of the user
Parameters: groups - the comma separated list of the groups of the user |
setHashPassword | protected void setHashPassword(HashPassword hashPassword)(Code) | | Set the hashed password of this user
Parameters: hashPassword - hashed password of this user |
setName | public void setName(String name)(Code) | | Set the name of this user
Parameters: name - Name of the user |
setPassword | public void setPassword(String password)(Code) | | Set the password of this user
Parameters: password - password of the user |
setRoles | public void setRoles(String roles)(Code) | | Set the roles of the user
Parameters: roles - the comma separated list of the roles of the user |
toString | public String toString()(Code) | | Use the XML representation of this object
the XML representation of this object |
toXML | public String toXML()(Code) | | String representation of the user
the xml representation of the user |
|
|
|