|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.security.jassjacc.JassJaccSecurityAdapter
Implements SecurityAdapter that uses JASS to authenticate and JACC to authorize the user operations.
| Constructor Summary | |
JassJaccSecurityAdapter(java.lang.String jassConfiguration)
|
|
| Method Summary | |
void |
authorizeConnection(BrokerClient client,
ConnectionInfo info)
Authenticates the connection and authorizes it for use with this Message Broker |
void |
authorizeConsumer(BrokerClient client,
ConsumerInfo info)
Authorizes that the consumer can start with the given consumer information |
void |
authorizeProducer(BrokerClient client,
ProducerInfo info)
Authorizes that the prodcuer can start with the given producer information. |
boolean |
authorizeReceive(BrokerClient client,
ActiveMQMessage message)
Returns true if the given client is authorized to receive the given message. |
void |
authorizeSendMessage(BrokerClient client,
ActiveMQMessage message)
Authorizes on a per message basis whether or not the client is allowed to send the given message. |
protected java.security.AccessControlContext |
getAccessControlContext(BrokerClient client)
|
protected static java.lang.String |
getBrokerName(BrokerClient client)
|
static void |
secure(BrokerSecurityConfig brokerSecurity)
Creates a JACC PolicyConfiguration for the broker security. |
static void |
secure(DestinationSecurityConfig destinationSecurity)
Creates a JACC PolicyConfiguration for the broker security. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JassJaccSecurityAdapter(java.lang.String jassConfiguration)
jassConfiguration - | Method Detail |
protected java.security.AccessControlContext getAccessControlContext(BrokerClient client)
protected static java.lang.String getBrokerName(BrokerClient client)
public void authorizeConnection(BrokerClient client,
ConnectionInfo info)
throws javax.jms.JMSException
SecurityAdapter
authorizeConnection in interface SecurityAdapterjavax.jms.JMSException - if the connection is not allowed for any reason
public void authorizeConsumer(BrokerClient client,
ConsumerInfo info)
throws javax.jms.JMSException
SecurityAdapter
authorizeConsumer in interface SecurityAdapterjavax.jms.JMSException - if the connection is not allowed for any reason
public boolean authorizeReceive(BrokerClient client,
ActiveMQMessage message)
SecurityAdapter
authorizeReceive in interface SecurityAdapterclient - the clientmessage - the message to be delivered
public void authorizeProducer(BrokerClient client,
ProducerInfo info)
throws javax.jms.JMSException
SecurityAdapter
authorizeProducer in interface SecurityAdapterjavax.jms.JMSException - if the connection is not allowed for any reason
public void authorizeSendMessage(BrokerClient client,
ActiveMQMessage message)
throws javax.jms.JMSException
SecurityAdapterSecurityAdapter.authorizeProducer(org.activemq.broker.BrokerClient, org.activemq.message.ProducerInfo)
authorizeSendMessage in interface SecurityAdapterjavax.jms.JMSExceptionpublic static void secure(BrokerSecurityConfig brokerSecurity)
brokerSecurity - public static void secure(DestinationSecurityConfig destinationSecurity)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||