public class UserManagementMBean extends AMQManagedObject implements UserManagement
COMPOSITE_ITEM_DESCRIPTIONS, COMPOSITE_ITEM_NAMES, RIGHTS_ADMIN, RIGHTS_READ_ONLY, RIGHTS_READ_WRITE, TABULAR_UNIQUE_INDEX, TYPE, USERNAME
DOMAIN
Constructor and Description |
---|
UserManagementMBean(PasswordCredentialManagingAuthenticationProvider provider,
ManagedObjectRegistry registry) |
Modifier and Type | Method and Description |
---|---|
boolean |
createUser(String username,
String password)
Create users with given details.
|
boolean |
deleteUser(String username)
View users returns all the users that are currently available to the system.
|
String |
getAuthenticationProviderType()
The type of the underlying authentication provider being managed.
|
String |
getObjectInstanceName() |
ManagedObject |
getParentObject() |
boolean |
reloadData()
Reload the user data
Since Qpid JMX API 2.3 / 1.12 this operation reloads only the password data.
|
boolean |
setPassword(String username,
String password)
Set password for a given user.
|
TabularData |
viewUsers()
View users returns all the users that are currently available to the system.
|
addNotificationListener, getBroadcaster, incrementAndGetSequenceNumber, removeNotificationListener
getHierarchicalName, getHierarchicalType, getManagementInterface, getMBeanInfo, getNotificationInfo, getObjectName, getObjectNameForSingleInstanceMBean, getRegistry, getType, register, toString, unregister
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNotificationInfo
public UserManagementMBean(PasswordCredentialManagingAuthenticationProvider provider, ManagedObjectRegistry registry) throws JMException
JMException
public String getObjectInstanceName()
getObjectInstanceName
in interface ManagedObject
public boolean setPassword(String username, String password)
UserManagement
setPassword
in interface UserManagement
username
- The username to createpassword
- The password for the userpublic boolean createUser(String username, String password)
UserManagement
createUser
in interface UserManagement
username
- The username to createpassword
- The password for the userpublic boolean deleteUser(String username)
UserManagement
deleteUser
in interface UserManagement
username
- The user to deletepublic boolean reloadData()
UserManagement
reloadData
in interface UserManagement
public TabularData viewUsers()
UserManagement
viewUsers
in interface UserManagement
public ManagedObject getParentObject()
getParentObject
in interface ManagedObject
getParentObject
in class DefaultManagedObject
public String getAuthenticationProviderType()
UserManagement
getAuthenticationProviderType
in interface UserManagement
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.