|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for pluggable principal management in JMS.
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. |
void |
init(Properties props)
Initialize the principal manager. |
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 void init(Properties props)
props
- the properties passed to the JMS server. By default this is
the content of the lib/msgsvc.properties
file.public Principal getPrincipal(String principalName) throws JMSException
principalName
JMSException
- the provider could not execute this methodPrincipal
public void createUser(String username, String password) throws JMSException
username
- name of new userpassword
- password for new user
JMSException
- the provider could not execute this methodpublic void deleteUser(String username) throws JMSException
username
- name of user to delete
JMSException
- the provider could not execute this methodpublic void updatePassword(String username, String password) throws JMSException
username
- name of user to updatepassword
- new password for user
JMSException
- the provider could not execute this methodpublic String[] listAllUsers() throws JMSException
JMSException
- the provider could not execute this methodpublic void createGroup(String groupName) throws JMSException
JMSException
- the provider could not execute this methodpublic void deleteGroup(String groupName) throws JMSException
JMSException
- the provider could not execute this methodpublic boolean isGroup(String principal) throws JMSException
principal
represents a group, FALSE
if user represents a user
JMSException
- the provider could not execute this methodpublic void addPrincipalToGroup(String principal, String groupName) throws JMSException
principal
- the principal to add to a groupgroupName
- name of group principal should be added to
JMSException
- the provider could not execute this methodpublic void removePrincipalFromGroup(String principal, String groupName) throws JMSException
principal
- the principal to remove to a groupgroupName
- name of group principal should be removed from
JMSException
- the provider could not execute this methodpublic String[] listGroupMembers(String groupName) throws JMSException
groupName
- name of group to retrieve members for
groupName
JMSException
- the provider could not execute this methodpublic String[] listAllGroups() throws JMSException
JMSException
- the provider could not execute this method
|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |