|
jBroker® MQ 2.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for pluggable principal management in jBroker MQ.
| Field Summary | |
static String |
GROUP_ADMIN
Name of the built-in Group of administrators |
static String |
GROUP_WORLD
Name of the built-in Group containing everyone |
static String |
USER_ANONYMOUS
Name of the built-in anonymous user |
| Method Summary | |
void |
addPrincipalToGroup(String principal,
String groupName)
Add a principal to the group. |
void |
createGroup(String groupName)
Create a Group with the given name |
void |
createUser(String username,
String password)
Create a User with the given name and password. |
void |
deleteGroup(String groupName)
Delete the Group with the given name |
void |
deleteUser(String username)
Delete the User with the given name and password |
Principal |
getPrincipal(String principalName)
Get the principal with the given name. |
boolean |
isGroup(String principal)
Determine if the given principal is a Group |
String[] |
listAllGroups()
List the names of all the Groups |
String[] |
listAllUsers()
List all the users |
String[] |
listGroupMembers(String groupName)
List all the Group member names |
void |
removePrincipalFromGroup(String principal,
String groupName)
Remove a principal from the group. |
void |
updatePassword(String username,
String password)
Update the password for the given user. |
| Field Detail |
public static final String USER_ANONYMOUS
public static final String GROUP_ADMIN
public static final String GROUP_WORLD
| Method Detail |
public Principal getPrincipal(String principalName)
throws JMSException
principalNameJMSException - the provider could not execute this methodPrincipal
public void createUser(String username,
String password)
throws JMSException
username - name of new userpassword - password for new userJMSException - the provider could not execute this method
public void deleteUser(String username)
throws JMSException
username - name of user to deleteJMSException - the provider could not execute this method
public void updatePassword(String username,
String password)
throws JMSException
username - name of user to updatepassword - new password for userJMSException - the provider could not execute this method
public String[] listAllUsers()
throws JMSException
JMSException - the provider could not execute this method
public void createGroup(String groupName)
throws JMSException
username - name of new groupJMSException - the provider could not execute this method
public void deleteGroup(String groupName)
throws JMSException
username - name of group to deleteJMSException - the provider could not execute this method
public boolean isGroup(String principal)
throws JMSException
principal represents a group, FALSE
if user represents a userJMSException - the provider could not execute this method
public void addPrincipalToGroup(String principal,
String groupName)
throws JMSException
principal - the principal to add to a groupgroupName - name of group principal should be added toJMSException - the provider could not execute this method
public void removePrincipalFromGroup(String principal,
String groupName)
throws JMSException
principal - the principal to remove to a groupgroupName - name of group principal should be removed fromJMSException - the provider could not execute this method
public String[] listGroupMembers(String groupName)