org.activemq.security
Interface SecurityAdapter

All Known Implementing Classes:
JassJaccSecurityAdapter

public interface SecurityAdapter

A pluggable strategy to authenticate new connections and authorize the connection and producer and consumer on destinations

Version:
$Revision: 1.1.1.1 $

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.
 

Method Detail

authorizeConnection

void authorizeConnection(BrokerClient client,
                         ConnectionInfo info)
                         throws JMSException
Authenticates the connection and authorizes it for use with this Message Broker

Throws:
JMSException - if the connection is not allowed for any reason

authorizeConsumer

void authorizeConsumer(BrokerClient client,
                       ConsumerInfo info)
                       throws JMSException
Authorizes that the consumer can start with the given consumer information

Throws:
JMSException - if the connection is not allowed for any reason

authorizeProducer

void authorizeProducer(BrokerClient client,
                       ProducerInfo info)
                       throws JMSException
Authorizes that the prodcuer can start with the given producer information. Note that the destination information may not be present at the start of the producer.

Throws:
JMSException - if the connection is not allowed for any reason

authorizeSendMessage

void authorizeSendMessage(BrokerClient client,
                          ActiveMQMessage message)
                          throws JMSException
Authorizes on a per message basis whether or not the client is allowed to send the given message. The client may not have been authorized yet for this destination as a destination may not have been specified on the previous call to authorizeProducer(org.activemq.broker.BrokerClient, org.activemq.message.ProducerInfo)

Throws:
JMSException

authorizeReceive

boolean authorizeReceive(BrokerClient client,
                         ActiveMQMessage message)
Returns true if the given client is authorized to receive the given message.

Parameters:
client - the client
message - the message to be delivered
Returns:
true if the client can receive the given message


Copyright © 2004-2010 Protique, Ltd.. All Rights Reserved.