|
|||||||||||
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(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 AccessControlContext |
getAccessControlContext(BrokerClient client)
|
protected static 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(String jassConfiguration)
jassConfiguration
- Method Detail |
protected AccessControlContext getAccessControlContext(BrokerClient client)
protected static String getBrokerName(BrokerClient client)
public void authorizeConnection(BrokerClient client, ConnectionInfo info) throws JMSException
SecurityAdapter
authorizeConnection
in interface SecurityAdapter
JMSException
- if the connection is not allowed for any reasonpublic void authorizeConsumer(BrokerClient client, ConsumerInfo info) throws JMSException
SecurityAdapter
authorizeConsumer
in interface SecurityAdapter
JMSException
- if the connection is not allowed for any reasonpublic boolean authorizeReceive(BrokerClient client, ActiveMQMessage message)
SecurityAdapter
authorizeReceive
in interface SecurityAdapter
client
- the clientmessage
- the message to be delivered
public void authorizeProducer(BrokerClient client, ProducerInfo info) throws JMSException
SecurityAdapter
authorizeProducer
in interface SecurityAdapter
JMSException
- if the connection is not allowed for any reasonpublic void authorizeSendMessage(BrokerClient client, ActiveMQMessage message) throws JMSException
SecurityAdapter
SecurityAdapter.authorizeProducer(org.activemq.broker.BrokerClient, org.activemq.message.ProducerInfo)
authorizeSendMessage
in interface SecurityAdapter
JMSException
public 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 |