|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserManagerMBean
Field Summary | |
---|---|
static java.lang.String[] |
AUTHORIZATION
|
static java.lang.String |
ENCODED_CREDENTIALS
|
static java.lang.String |
ENCODED_ROLE
|
static java.lang.String |
ENCODED_USER
|
static java.lang.String[] |
GROUP
|
static java.lang.String |
GROUP_MEMBERS
|
static java.lang.String |
GROUP_REQUIRED_MEMBERS
|
static java.lang.String[] |
ROLE
|
static java.lang.String |
ROLE_ENCODED_PROPERTIES
|
static java.lang.String |
ROLE_NAME
|
static java.lang.String |
ROLE_NAMES
|
static java.lang.String |
ROLE_TYPE
|
static java.lang.String[] |
USER
|
static java.lang.String |
USER_NAME
|
Method Summary | |
---|---|
void |
addCredential(java.lang.String key,
byte[] value,
java.lang.String username)
Add credentials to a user, associated with the supplied key |
void |
addCredential(java.lang.String key,
java.lang.String value,
java.lang.String username)
Add credentials to a user, associated with the supplied key |
boolean |
addMember(java.lang.String groupname,
java.lang.String rolename)
Add a role to the group |
void |
addProperty(java.lang.String key,
byte[] value,
java.lang.String rolename)
Add or update a property on a role |
void |
addProperty(java.lang.String key,
java.lang.String value,
java.lang.String rolename)
Add or update a property on a role |
boolean |
addRequiredMember(java.lang.String groupname,
java.lang.String rolename)
Add a required member to the group |
void |
createGroup(java.lang.String name)
Create a Group |
void |
createUser(java.lang.String name)
Create a User |
javax.management.openmbean.CompositeData |
getAuthorization(java.lang.String user)
Answer the authorization for the user name |
javax.management.openmbean.TabularData |
getCredentials(java.lang.String username)
Answer the credentials associated with a user |
javax.management.openmbean.CompositeData |
getGroup(java.lang.String groupname)
Answer the Group associated with the groupname |
java.lang.String[] |
getGroups()
Answer the list of group names |
java.lang.String[] |
getGroups(java.lang.String filter)
Answer the list of group names |
java.lang.String[] |
getImpliedRoles(java.lang.String username)
Answer the list of implied roles for a user |
java.lang.String[] |
getMembers(java.lang.String groupname)
Answer the the user names which are members of the group |
javax.management.openmbean.TabularData |
getProperties(java.lang.String rolename)
Answer the credentials associated with a role |
java.lang.String[] |
getRequiredMembers(java.lang.String groupname)
Answer the list of user names which are required members of this group |
javax.management.openmbean.CompositeData |
getRole(java.lang.String name)
Answer the role associated with a name |
java.lang.String[] |
getRoles()
Answer the list of role names in the User Admin database |
java.lang.String[] |
getRoles(java.lang.String filter)
Answer the list of role names which match the supplied filter |
javax.management.openmbean.CompositeData |
getUser(java.lang.String username)
Answer the User associated with the username |
java.lang.String |
getUser(java.lang.String key,
java.lang.String value)
Answer the user name with the given property key-value pair from the User Admin service database. |
java.lang.String[] |
getUsers()
Answer the list of user names in the User Admin database |
java.lang.String[] |
getUsers(java.lang.String filter)
Answer the list of user names in the User Admin database |
void |
removeCredential(java.lang.String key,
java.lang.String username)
Remove the credentials associated with the key for the user |
boolean |
removeMember(java.lang.String groupname,
java.lang.String rolename)
Remove a role from the group |
void |
removeProperty(java.lang.String key,
java.lang.String rolename)
Remove a property from a role |
boolean |
removeRole(java.lang.String name)
Remove the Role associated with the name |
Field Detail |
---|
static final java.lang.String ROLE_NAME
static final java.lang.String ROLE_TYPE
static final java.lang.String ROLE_ENCODED_PROPERTIES
static final java.lang.String ENCODED_USER
static final java.lang.String GROUP_MEMBERS
static final java.lang.String GROUP_REQUIRED_MEMBERS
static final java.lang.String USER_NAME
static final java.lang.String ROLE_NAMES
static final java.lang.String ENCODED_ROLE
static final java.lang.String ENCODED_CREDENTIALS
static final java.lang.String[] AUTHORIZATION
static final java.lang.String[] USER
static final java.lang.String[] ROLE
static final java.lang.String[] GROUP
Method Detail |
---|
void addCredential(java.lang.String key, byte[] value, java.lang.String username) throws java.io.IOException
key
- value
- username
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the username is not a Uservoid addCredential(java.lang.String key, java.lang.String value, java.lang.String username) throws java.io.IOException
key
- value
- username
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the username is not a Userboolean addMember(java.lang.String groupname, java.lang.String rolename) throws java.io.IOException
groupname
- rolename
-
java.io.IOException
- if the operation failsvoid addProperty(java.lang.String key, java.lang.String value, java.lang.String rolename) throws java.io.IOException
key
- - the property keyvalue
- - the String property valuerolename
- - the role name
java.io.IOException
- if the operation failsvoid addProperty(java.lang.String key, byte[] value, java.lang.String rolename) throws java.io.IOException
key
- - the property keyvalue
- - the byte[] property valuerolename
- - the role name
java.io.IOException
- if the operation failsboolean addRequiredMember(java.lang.String groupname, java.lang.String rolename) throws java.io.IOException
groupname
- rolename
-
java.io.IOException
- if the operation failsvoid createUser(java.lang.String name) throws java.io.IOException
name
- - the user to create
java.io.IOException
- if the operation failsvoid createGroup(java.lang.String name) throws java.io.IOException
name
- - the group to create
java.io.IOException
- if the operation failsjavax.management.openmbean.CompositeData getAuthorization(java.lang.String user) throws java.io.IOException
user
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the username is not a Userfor the details of the
CompositeType
javax.management.openmbean.TabularData getCredentials(java.lang.String username) throws java.io.IOException
username
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the username is not a Userfor the details of the TabularType
javax.management.openmbean.CompositeData getGroup(java.lang.String groupname) throws java.io.IOException
groupname
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the groupname is not a Groupfor the details of the CompositeType
java.lang.String[] getGroups() throws java.io.IOException
java.io.IOException
- if the operation failsjava.lang.String[] getGroups(java.lang.String filter) throws java.io.IOException
filter
- - the filter to apply
java.io.IOException
- if the operation failsjava.lang.String[] getImpliedRoles(java.lang.String username) throws java.io.IOException
username
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the username is not a Userjava.lang.String[] getMembers(java.lang.String groupname) throws java.io.IOException
groupname
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the groupname is not a groupjavax.management.openmbean.TabularData getProperties(java.lang.String rolename) throws java.io.IOException
rolename
-
java.io.IOException
- if the operation failsfor the details of the TabularType
java.lang.String[] getRequiredMembers(java.lang.String groupname) throws java.io.IOException
groupname
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the groupname is not a groupjavax.management.openmbean.CompositeData getRole(java.lang.String name) throws java.io.IOException
name
-
java.io.IOException
- if the operation failsfor the details of the CompositeType
java.lang.String[] getRoles() throws java.io.IOException
java.io.IOException
- if the operation failsjava.lang.String[] getRoles(java.lang.String filter) throws java.io.IOException
filter
- - the string representation of the
org.osgi.framework.Filter
java.io.IOException
- if the operation failsjavax.management.openmbean.CompositeData getUser(java.lang.String username) throws java.io.IOException
username
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the username is not a Userfor the details of the CompositeType
java.lang.String getUser(java.lang.String key, java.lang.String value) throws java.io.IOException
key
- - the key to comparevalue
- - the value to compare
java.io.IOException
- if the operation failsjava.lang.String[] getUsers() throws java.io.IOException
java.io.IOException
- if the operation failsjava.lang.String[] getUsers(java.lang.String filter) throws java.io.IOException
filter
- - the filter to apply
java.io.IOException
- if the operation failsvoid removeCredential(java.lang.String key, java.lang.String username) throws java.io.IOException
key
- username
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the username is not a Userboolean removeMember(java.lang.String groupname, java.lang.String rolename) throws java.io.IOException
groupname
- rolename
-
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the groupname is not a Groupvoid removeProperty(java.lang.String key, java.lang.String rolename) throws java.io.IOException
key
- rolename
-
java.io.IOException
- if the operation failsboolean removeRole(java.lang.String name) throws java.io.IOException
name
-
java.io.IOException
- if the operation fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |