public class AuthorizationBroker extends BrokerFilter implements SecurityAdminMBean
nextOPERATION_ADMIN, OPERATION_READ, OPERATION_WRITE| Constructor and Description |
|---|
AuthorizationBroker(Broker next,
AuthorizationMap authorizationMap) |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
addConsumer(ConnectionContext context,
ConsumerInfo info)
Adds a consumer.
|
Destination |
addDestination(ConnectionContext context,
ActiveMQDestination destination,
boolean create)
Used to create a destination.
|
void |
addDestinationInfo(ConnectionContext context,
DestinationInfo info)
Add and process a DestinationInfo object
|
void |
addDestinationRole(Destination destination,
String operation,
String role) |
void |
addProducer(ConnectionContext context,
ProducerInfo info)
Adds a producer.
|
void |
addQueueRole(String queue,
String operation,
String role) |
void |
addRole(String role) |
void |
addTopicRole(String topic,
String operation,
String role) |
void |
addUserRole(String user,
String role) |
protected boolean |
checkDestinationAdmin(SecurityContext securityContext,
ActiveMQDestination destination) |
protected SecurityContext |
checkSecurityContext(ConnectionContext context) |
AuthorizationMap |
getAuthorizationMap() |
void |
removeDestination(ConnectionContext context,
ActiveMQDestination destination,
long timeout)
Used to destroy a destination.
|
void |
removeDestinationInfo(ConnectionContext context,
DestinationInfo info)
Remove and process a DestinationInfo object
|
void |
removeDestinationRole(Destination destination,
String operation,
String role) |
void |
removeQueueRole(String queue,
String operation,
String role) |
void |
removeRole(String role) |
void |
removeTopicRole(String topic,
String operation,
String role) |
void |
removeUserRole(String user,
String role) |
void |
send(ProducerBrokerExchange producerExchange,
Message messageSend)
Send a message to the broker to using the specified destination.
|
void |
setAuthorizationMap(AuthorizationMap map) |
acknowledge, addBroker, addConnection, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeConsumer, removeProducer, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stoppublic AuthorizationBroker(Broker next, AuthorizationMap authorizationMap)
public AuthorizationMap getAuthorizationMap()
public void setAuthorizationMap(AuthorizationMap map)
protected SecurityContext checkSecurityContext(ConnectionContext context) throws SecurityException
SecurityExceptionprotected boolean checkDestinationAdmin(SecurityContext securityContext, ActiveMQDestination destination)
public void addDestinationInfo(ConnectionContext context, DestinationInfo info) throws Exception
BrokeraddDestinationInfo in interface BrokeraddDestinationInfo in class BrokerFilterExceptionpublic Destination addDestination(ConnectionContext context, ActiveMQDestination destination, boolean create) throws Exception
RegionaddDestination in interface RegionaddDestination in class BrokerFilterdestination - the destination to create.Exception - TODOpublic void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception
RegionremoveDestination in interface RegionremoveDestination in class BrokerFiltercontext - the environment the operation is being executed under.destination - what is being removed from the broker.timeout - the max amount of time to wait for the destination to quiesceException - TODOpublic void removeDestinationInfo(ConnectionContext context, DestinationInfo info) throws Exception
BrokerremoveDestinationInfo in interface BrokerremoveDestinationInfo in class BrokerFilterExceptionpublic Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
RegionaddConsumer in interface RegionaddConsumer in class BrokerFiltercontext - the environment the operation is being executed under.Exception - TODOpublic void addProducer(ConnectionContext context, ProducerInfo info) throws Exception
BrokeraddProducer in interface BrokeraddProducer in interface RegionaddProducer in class BrokerFiltercontext - the enviorment the operation is being executed under.Exception - TODOpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception
Regionsend in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.Exception - TODOpublic void addQueueRole(String queue, String operation, String role)
addQueueRole in interface SecurityAdminMBeanpublic void addTopicRole(String topic, String operation, String role)
addTopicRole in interface SecurityAdminMBeanpublic void removeQueueRole(String queue, String operation, String role)
removeQueueRole in interface SecurityAdminMBeanpublic void removeTopicRole(String topic, String operation, String role)
removeTopicRole in interface SecurityAdminMBeanpublic void addDestinationRole(Destination destination, String operation, String role)
public void removeDestinationRole(Destination destination, String operation, String role)
public void addRole(String role)
addRole in interface SecurityAdminMBeanpublic void addUserRole(String user, String role)
addUserRole in interface SecurityAdminMBeanpublic void removeRole(String role)
removeRole in interface SecurityAdminMBeanpublic void removeUserRole(String user, String role)
removeUserRole in interface SecurityAdminMBeanCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.