|
||||||||||
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)
Used to create a destination. |
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)
|
void |
removeDestination(ConnectionContext context,
ActiveMQDestination destination,
long timeout)
Used to destroy a destination. |
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(ConnectionContext context,
Message messageSend)
Send a message to the broker to using the specified destination. |
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 Destination addDestination(ConnectionContext context, ActiveMQDestination destination) throws java.lang.Exception
Region
addDestination
in interface Region
addDestination
in class BrokerFilter
destination
- the destination to create.
java.lang.Exception
- TODOpublic void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws java.lang.Exception
Region
removeDestination
in interface Region
removeDestination
in class BrokerFilter
context
- 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
java.lang.Exception
- TODOpublic Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws java.lang.Exception
Region
addConsumer
in interface Region
addConsumer
in class BrokerFilter
context
- the environment the operation is being executed under.
java.lang.Exception
- TODOpublic void addProducer(ConnectionContext context, ProducerInfo info) throws java.lang.Exception
Broker
addProducer
in interface Broker
addProducer
in class BrokerFilter
context
- the enviorment the operation is being executed under.
java.lang.Exception
- TODOpublic void send(ConnectionContext context, Message messageSend) throws java.lang.Exception
Region
send
in interface Region
send
in class BrokerFilter
context
- 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 SecurityAdminMBean
public void addTopicRole(java.lang.String topic, java.lang.String operation, java.lang.String role)
addTopicRole
in interface SecurityAdminMBean
public void removeQueueRole(java.lang.String queue, java.lang.String operation, java.lang.String role)
removeQueueRole
in interface SecurityAdminMBean
public void removeTopicRole(java.lang.String topic, java.lang.String operation, java.lang.String role)
removeTopicRole
in interface SecurityAdminMBean
public 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 SecurityAdminMBean
public void addUserRole(java.lang.String user, java.lang.String role)
addUserRole
in interface SecurityAdminMBean
public void removeRole(java.lang.String role)
removeRole
in interface SecurityAdminMBean
public void removeUserRole(java.lang.String user, java.lang.String role)
removeUserRole
in interface SecurityAdminMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |