|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas.security.realm.principals.User
This class define the User class which represent a user by its name, password, etc.
| Field Summary | |
protected static java.lang.String |
SEPARATOR
Separator of the groups/roles |
| Constructor Summary | |
User()
Constructor |
|
User(java.lang.String name,
java.lang.String password)
Constructor with a given login / password |
|
| Method Summary | |
void |
addGroup(java.lang.String group)
Add the specified group to this user |
void |
addRole(java.lang.String role)
Add a role to this user |
java.lang.String[] |
getArrayGroups()
Get the groups |
java.lang.String[] |
getArrayRoles()
Get the roles |
java.util.ArrayList |
getCombinedRoles()
Get the combined roles of this user |
java.lang.String |
getGroups()
Get the groups |
HashPassword |
getHashPassword()
Set the hashed password of this user |
java.lang.String |
getName()
Get the name of this user |
java.lang.String |
getPassword()
Get the password of this user |
java.lang.String |
getRoles()
Get the roles |
void |
removeGroup(java.lang.String group)
Remove a group from this user |
void |
removeRole(java.lang.String role)
Remove a role from this user |
void |
setCombinedRoles(java.util.ArrayList combinedRoles)
Set the combined roles of this user |
void |
setGroups(java.lang.String groups)
Set the groups of the user |
protected void |
setHashPassword(HashPassword hashPassword)
Set the hashed password of this user |
void |
setName(java.lang.String name)
Set the name of this user |
void |
setPassword(java.lang.String password)
Set the password of this user |
void |
setRoles(java.lang.String roles)
Set the roles of the user |
java.lang.String |
toString()
Use the XML representation of this object |
java.lang.String |
toXML()
String representation of the user |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
equals, hashCode |
| Field Detail |
protected static final java.lang.String SEPARATOR
| Constructor Detail |
public User()
public User(java.lang.String name,
java.lang.String password)
name - the given namepassword - the given password| Method Detail |
public void setName(java.lang.String name)
name - Name of the userpublic java.lang.String getName()
getName in interface java.security.Principalpublic java.lang.String getPassword()
getPassword in interface UserMBeanpublic void setPassword(java.lang.String password)
setPassword in interface UserMBeanpassword - password of the userprotected void setHashPassword(HashPassword hashPassword)
hashPassword - hashed password of this userpublic HashPassword getHashPassword()
public void setGroups(java.lang.String groups)
groups - the comma separated list of the groups of the userpublic java.lang.String getGroups()
public java.lang.String[] getArrayGroups()
getArrayGroups in interface UserMBeanpublic void setRoles(java.lang.String roles)
roles - the comma separated list of the roles of the userpublic void addGroup(java.lang.String group)
addGroup in interface UserMBeangroup - the group to addpublic void addRole(java.lang.String role)
addRole in interface UserMBeanrole - the given rolepublic void removeGroup(java.lang.String group)
removeGroup in interface UserMBeangroup - the given grouppublic void removeRole(java.lang.String role)
removeRole in interface UserMBeanrole - the given rolepublic java.lang.String getRoles()
public void setCombinedRoles(java.util.ArrayList combinedRoles)
combinedRoles - combined of the userpublic java.util.ArrayList getCombinedRoles()
public java.lang.String[] getArrayRoles()
getArrayRoles in interface UserMBeanpublic java.lang.String toXML()
public java.lang.String toString()
toString in interface java.security.Principal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||