|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Define the methods for the MBean
Method Summary | |
void |
addGroup(java.lang.String groupname)
Add a group with a given name |
void |
addRole(java.lang.String rolename)
Add a role with a given name |
void |
addUser(java.lang.String username,
java.lang.String password)
Add a user with a given principal and credential |
java.lang.String[] |
listGroups()
Get the groups |
java.lang.String[] |
listRoles()
Get the roles |
void |
removeGroup(java.lang.String groupname)
Remove a group with a given name |
void |
removeRole(java.lang.String rolename)
Remove a role with a given name |
void |
removeUser(java.lang.String username)
Remove a user with a given principal and credential |
Methods inherited from interface org.objectweb.jonas.security.realm.factory.JResourceMBean |
getName, saveConfig |
Method Detail |
public void addUser(java.lang.String username, java.lang.String password) throws java.lang.Exception
username
- the name of the userpassword
- password of the user
java.lang.Exception
- if the user already existspublic void addGroup(java.lang.String groupname) throws java.lang.Exception
groupname
- the name of the group
java.lang.Exception
- if the group already existspublic void addRole(java.lang.String rolename) throws java.lang.Exception
rolename
- the name of the role
java.lang.Exception
- if the role already existspublic void removeUser(java.lang.String username) throws java.lang.Exception
username
- the name of the user
java.lang.Exception
- if the user was not foundpublic void removeGroup(java.lang.String groupname) throws java.lang.Exception
groupname
- the name of the group
java.lang.Exception
- if the group was not foundpublic void removeRole(java.lang.String rolename) throws java.lang.Exception
rolename
- the name of the role
java.lang.Exception
- if the role was not foundpublic java.lang.String[] listRoles()
public java.lang.String[] listGroups()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |