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