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(javax.jms.Destination destination,
java.lang.String operation,
java.lang.String role) |
void |
addProducer(ConnectionContext context,
ProducerInfo info)
Adds a producer.
|
void |
addQueueRole(java.lang.String queue,
java.lang.String operation,
java.lang.String role) |
void |
addRole(java.lang.String role) |
void |
addTopicRole(java.lang.String topic,
java.lang.String operation,
java.lang.String role) |
void |
addUserRole(java.lang.String user,
java.lang.String role) |
protected boolean |
checkDestinationAdmin(SecurityContext securityContext,
ActiveMQDestination destination) |
protected SecurityContext |
checkSecurityContext(ConnectionContext context) |
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(javax.jms.Destination destination,
java.lang.String operation,
java.lang.String role) |
void |
removeQueueRole(java.lang.String queue,
java.lang.String operation,
java.lang.String role) |
void |
removeRole(java.lang.String role) |
void |
removeTopicRole(java.lang.String topic,
java.lang.String operation,
java.lang.String role) |
void |
removeUserRole(java.lang.String user,
java.lang.String role) |
void |
send(ProducerBrokerExchange producerExchange,
Message messageSend)
Send a message to the broker to using the specified destination.
|
acknowledge, addBroker, addConnection, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, 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, removeBroker, removeConnection, removeConsumer, removeProducer, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stoppublic AuthorizationBroker(Broker next, AuthorizationMap authorizationMap)
protected SecurityContext checkSecurityContext(ConnectionContext context) throws java.lang.SecurityException
java.lang.SecurityExceptionprotected boolean checkDestinationAdmin(SecurityContext securityContext, ActiveMQDestination destination)
public void addDestinationInfo(ConnectionContext context, DestinationInfo info) throws java.lang.Exception
BrokeraddDestinationInfo in interface BrokeraddDestinationInfo in class BrokerFilterjava.lang.Exceptionpublic Destination addDestination(ConnectionContext context, ActiveMQDestination destination, boolean create) throws java.lang.Exception
RegionaddDestination in interface RegionaddDestination in class BrokerFilterdestination - the destination to create.java.lang.Exception - TODOpublic void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws java.lang.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 quiescejava.lang.Exception - TODOpublic void removeDestinationInfo(ConnectionContext context, DestinationInfo info) throws java.lang.Exception
BrokerremoveDestinationInfo in interface BrokerremoveDestinationInfo in class BrokerFilterjava.lang.Exceptionpublic Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws java.lang.Exception
RegionaddConsumer in interface RegionaddConsumer in class BrokerFiltercontext - the environment the operation is being executed under.java.lang.Exception - TODOpublic void addProducer(ConnectionContext context, ProducerInfo info) throws java.lang.Exception
BrokeraddProducer in interface BrokeraddProducer in interface RegionaddProducer in class BrokerFiltercontext - the enviorment the operation is being executed under.java.lang.Exception - TODOpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws java.lang.Exception
Regionsend in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.java.lang.Exception - TODOpublic void addQueueRole(java.lang.String queue,
java.lang.String operation,
java.lang.String role)
addQueueRole in interface SecurityAdminMBeanpublic void addTopicRole(java.lang.String topic,
java.lang.String operation,
java.lang.String role)
addTopicRole in interface SecurityAdminMBeanpublic void removeQueueRole(java.lang.String queue,
java.lang.String operation,
java.lang.String role)
removeQueueRole in interface SecurityAdminMBeanpublic void removeTopicRole(java.lang.String topic,
java.lang.String operation,
java.lang.String role)
removeTopicRole in interface SecurityAdminMBeanpublic void addDestinationRole(javax.jms.Destination destination,
java.lang.String operation,
java.lang.String role)
public void removeDestinationRole(javax.jms.Destination destination,
java.lang.String operation,
java.lang.String role)
public void addRole(java.lang.String role)
addRole in interface SecurityAdminMBeanpublic void addUserRole(java.lang.String user,
java.lang.String role)
addUserRole in interface SecurityAdminMBeanpublic void removeRole(java.lang.String role)
removeRole in interface SecurityAdminMBeanpublic void removeUserRole(java.lang.String user,
java.lang.String role)
removeUserRole in interface SecurityAdminMBeanCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.