|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.security.internal.realm.principal.User
public class User
This class define the User class which represent a user by its name, password, etc.
| Field Summary | |
|---|---|
protected static String |
SEPARATOR
Separator of the groups/roles |
| Constructor Summary | |
|---|---|
User()
Constructor |
|
User(String name,
String password)
Constructor with a given login / password |
|
| Method Summary | |
|---|---|
void |
addGroup(String group)
Add the specified group to this user |
void |
addRole(String role)
Add a role to this user |
String[] |
getArrayGroups()
Get the groups |
String[] |
getArrayRoles()
Get the roles |
ArrayList |
getCombinedRoles()
|
String |
getGroups()
|
org.ow2.jonas.security.realm.lib.HashPassword |
getHashPassword()
|
String |
getName()
Get the name of this user |
String |
getPassword()
Get the password of this user |
String |
getRoles()
|
void |
removeGroup(String group)
Remove a group from this user |
void |
removeRole(String role)
Remove a role from this user |
void |
setCombinedRoles(ArrayList combinedRoles)
|
void |
setGroups(String groups)
|
protected void |
setHashPassword(org.ow2.jonas.security.realm.lib.HashPassword hashPassword)
Set the hashed password of this user |
void |
setName(String name)
|
void |
setPassword(String password)
Set the password of this user |
void |
setRoles(String roles)
|
String |
toString()
Use the XML representation of this object |
String |
toXML()
|
| 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 String SEPARATOR
| Constructor Detail |
|---|
public User()
public User(String name,
String password)
name - the given namepassword - the given password| Method Detail |
|---|
public void setName(String name)
setName in interface org.ow2.jonas.security.realm.principal.JUserpublic String getName()
UserMBean
getName in interface PrincipalgetName in interface UserMBeangetName in interface org.ow2.jonas.security.realm.principal.JUserpublic String getPassword()
UserMBean
getPassword in interface UserMBeangetPassword in interface org.ow2.jonas.security.realm.principal.JUserpublic void setPassword(String password)
UserMBean
setPassword in interface UserMBeansetPassword in interface org.ow2.jonas.security.realm.principal.JUserpassword - password of the userprotected void setHashPassword(org.ow2.jonas.security.realm.lib.HashPassword hashPassword)
hashPassword - hashed password of this userpublic org.ow2.jonas.security.realm.lib.HashPassword getHashPassword()
getHashPassword in interface org.ow2.jonas.security.realm.principal.JUserpublic void setGroups(String groups)
setGroups in interface org.ow2.jonas.security.realm.principal.JUserpublic String getGroups()
getGroups in interface org.ow2.jonas.security.realm.principal.JUserpublic String[] getArrayGroups()
UserMBean
getArrayGroups in interface UserMBeangetArrayGroups in interface org.ow2.jonas.security.realm.principal.JUserpublic void setRoles(String roles)
setRoles in interface org.ow2.jonas.security.realm.principal.JUserpublic void addGroup(String group)
UserMBean
addGroup in interface UserMBeanaddGroup in interface org.ow2.jonas.security.realm.principal.JUsergroup - the group to addpublic void addRole(String role)
UserMBean
addRole in interface UserMBeanaddRole in interface org.ow2.jonas.security.realm.principal.JUserrole - the given rolepublic void removeGroup(String group)
UserMBean
removeGroup in interface UserMBeanremoveGroup in interface org.ow2.jonas.security.realm.principal.JUsergroup - the given grouppublic void removeRole(String role)
UserMBean
removeRole in interface UserMBeanremoveRole in interface org.ow2.jonas.security.realm.principal.JUserrole - the given rolepublic String getRoles()
getRoles in interface org.ow2.jonas.security.realm.principal.JUserpublic void setCombinedRoles(ArrayList combinedRoles)
setCombinedRoles in interface org.ow2.jonas.security.realm.principal.JUserpublic ArrayList getCombinedRoles()
getCombinedRoles in interface org.ow2.jonas.security.realm.principal.JUserpublic String[] getArrayRoles()
UserMBean
getArrayRoles in interface UserMBeangetArrayRoles in interface org.ow2.jonas.security.realm.principal.JUserpublic String toXML()
toXML in interface org.ow2.jonas.security.realm.principal.JUserpublic String toString()
toString in interface PrincipaltoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||