|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.broker.BrokerFilter
org.apache.activemq.security.AuthorizationBroker
public class AuthorizationBroker
Verifies if a authenticated user can do an operation against the broker using an authorization map.
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.broker.BrokerFilter |
|---|
next |
| Fields inherited from interface org.apache.activemq.security.SecurityAdminMBean |
|---|
OPERATION_ADMIN, OPERATION_READ, OPERATION_WRITE |
| Constructor Summary | |
|---|---|
AuthorizationBroker(Broker next,
AuthorizationMap authorizationMap)
|
|
| Method Summary | |
|---|---|
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,
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)
|
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,
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationBroker(Broker next,
AuthorizationMap authorizationMap)
| Method Detail |
|---|
public void setAuthorizationMap(AuthorizationMap map)
protected SecurityContext checkSecurityContext(ConnectionContext context)
throws SecurityException
SecurityException
protected boolean checkDestinationAdmin(SecurityContext securityContext,
ActiveMQDestination destination)
public void addDestinationInfo(ConnectionContext context,
DestinationInfo info)
throws Exception
Broker
addDestinationInfo in interface BrokeraddDestinationInfo in class BrokerFilterException
public Destination addDestination(ConnectionContext context,
ActiveMQDestination destination,
boolean create)
throws Exception
Region
addDestination in interface RegionaddDestination in class BrokerFilterdestination - the destination to create.
Exception - TODO
public void removeDestination(ConnectionContext context,
ActiveMQDestination destination,
long timeout)
throws Exception
Region
removeDestination 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 quiesce
Exception - TODO
public void removeDestinationInfo(ConnectionContext context,
DestinationInfo info)
throws Exception
Broker
removeDestinationInfo in interface BrokerremoveDestinationInfo in class BrokerFilterException
public Subscription addConsumer(ConnectionContext context,
ConsumerInfo info)
throws Exception
Region
addConsumer in interface RegionaddConsumer in class BrokerFiltercontext - the environment the operation is being executed under.
Exception - TODO
public void addProducer(ConnectionContext context,
ProducerInfo info)
throws Exception
Broker
addProducer in interface BrokeraddProducer in interface RegionaddProducer in class BrokerFiltercontext - the enviorment the operation is being executed under.
Exception - TODO
public void send(ProducerBrokerExchange producerExchange,
Message messageSend)
throws Exception
Region
send in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.
Exception - TODO
public void addQueueRole(String queue,
String operation,
String role)
addQueueRole in interface SecurityAdminMBean
public void addTopicRole(String topic,
String operation,
String role)
addTopicRole in interface SecurityAdminMBean
public void removeQueueRole(String queue,
String operation,
String role)
removeQueueRole in interface SecurityAdminMBean
public void removeTopicRole(String topic,
String operation,
String role)
removeTopicRole in interface SecurityAdminMBean
public void addDestinationRole(javax.jms.Destination destination,
String operation,
String role)
public void removeDestinationRole(javax.jms.Destination destination,
String operation,
String role)
public void addRole(String role)
addRole in interface SecurityAdminMBean
public void addUserRole(String user,
String role)
addUserRole in interface SecurityAdminMBeanpublic void removeRole(String role)
removeRole in interface SecurityAdminMBean
public void removeUserRole(String user,
String role)
removeUserRole in interface SecurityAdminMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||