Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.config
Class SecurityAdapterStub  view SecurityAdapterStub download SecurityAdapterStub.java

java.lang.Object
  extended byorg.activemq.config.SecurityAdapterStub
All Implemented Interfaces:
org.activemq.security.SecurityAdapter

public class SecurityAdapterStub
extends java.lang.Object
implements org.activemq.security.SecurityAdapter

Version:
$Revision: 1.1.1.1 $

Constructor Summary
SecurityAdapterStub()
           
 
Method Summary
 void authorizeConnection(org.activemq.broker.BrokerClient client, org.activemq.message.ConnectionInfo info)
          Authenticates the connection and authorizes it for use with this Message Broker
 void authorizeConsumer(org.activemq.broker.BrokerClient client, org.activemq.message.ConsumerInfo info)
          Authorizes that the consumer can start with the given consumer information
 void authorizeProducer(org.activemq.broker.BrokerClient client, org.activemq.message.ProducerInfo info)
          Authorizes that the prodcuer can start with the given producer information.
 boolean authorizeReceive(org.activemq.broker.BrokerClient client, org.activemq.message.ActiveMQMessage message)
          Returns true if the given client is authorized to receive the given message.
 void authorizeSendMessage(org.activemq.broker.BrokerClient client, org.activemq.message.ActiveMQMessage message)
          Authorizes on a per message basis whether or not the client is allowed to send the given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityAdapterStub

public SecurityAdapterStub()
Method Detail

authorizeConnection

public void authorizeConnection(org.activemq.broker.BrokerClient client,
                                org.activemq.message.ConnectionInfo info)
                         throws javax.jms.JMSException
Description copied from interface: org.activemq.security.SecurityAdapter
Authenticates the connection and authorizes it for use with this Message Broker

Specified by:
authorizeConnection in interface org.activemq.security.SecurityAdapter

authorizeConsumer

public void authorizeConsumer(org.activemq.broker.BrokerClient client,
                              org.activemq.message.ConsumerInfo info)
                       throws javax.jms.JMSException
Description copied from interface: org.activemq.security.SecurityAdapter
Authorizes that the consumer can start with the given consumer information

Specified by:
authorizeConsumer in interface org.activemq.security.SecurityAdapter

authorizeProducer

public void authorizeProducer(org.activemq.broker.BrokerClient client,
                              org.activemq.message.ProducerInfo info)
                       throws javax.jms.JMSException
Description copied from interface: org.activemq.security.SecurityAdapter
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.

Specified by:
authorizeProducer in interface org.activemq.security.SecurityAdapter

authorizeSendMessage

public void authorizeSendMessage(org.activemq.broker.BrokerClient client,
                                 org.activemq.message.ActiveMQMessage message)
                          throws javax.jms.JMSException
Description copied from interface: org.activemq.security.SecurityAdapter
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 SecurityAdapter.authorizeProducer(org.activemq.broker.BrokerClient, org.activemq.message.ProducerInfo)>SecurityAdapter.authorizeProducer(org.activemq.broker.BrokerClient, org.activemq.message.ProducerInfo) 55

Specified by:
authorizeSendMessage in interface org.activemq.security.SecurityAdapter

authorizeReceive

public boolean authorizeReceive(org.activemq.broker.BrokerClient client,
                                org.activemq.message.ActiveMQMessage message)
Description copied from interface: org.activemq.security.SecurityAdapter
Returns true if the given client is authorized to receive the given message.

Specified by:
authorizeReceive in interface org.activemq.security.SecurityAdapter