|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.security.realm.principals.User
public class 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 passwordMethod Detail |
---|
public void setName(java.lang.String name)
name
- Name of the userpublic java.lang.String getName()
getName
in interface java.security.Principal
getName
in interface UserMBean
public java.lang.String getPassword()
getPassword
in interface UserMBean
public void setPassword(java.lang.String password)
setPassword
in interface UserMBean
password
- 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 UserMBean
public 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 UserMBean
group
- the group to addpublic void addRole(java.lang.String role)
addRole
in interface UserMBean
role
- the given rolepublic void removeGroup(java.lang.String group)
removeGroup
in interface UserMBean
group
- the given grouppublic void removeRole(java.lang.String role)
removeRole
in interface UserMBean
role
- 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 UserMBean
public java.lang.String toXML()
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |