org.activemq.security.jassjacc
Class PropertiesConfigLoader

java.lang.Object
  extended byorg.activemq.security.jassjacc.PropertiesConfigLoader

public class PropertiesConfigLoader
extends Object

Parses a Properties object into a set of BrokerSecurityConfig and DestinationSecurityConfig objects that can be used to secure the ActiveMQ broker. Sample properties configuration:

 
 # Secure a connection the the 'localhost' broker
 connect.roles=admins,traders,brokers,guests
 
 # Secure the TEST_TOPIC topic.
 topic.T1.names=TEST_TOPIC
 topic.T1.consume.roles=traders
 topic.T1.produce.roles=traders,brokers 
 topic.T1.send.roles=traders,brokers 
 
 # You can also secure more than one destination in one go.
 queue.Q1.names=TEST_QUEUE,A_QUEUE,B_QUEUE
 queue.Q1.consume.roles=traders
 queue.Q1.produce.roles=traders,brokers 
 queue.Q1.send.roles=traders,brokers
  
 

Version:
$Revision: 1.1.1.1 $

Constructor Summary
PropertiesConfigLoader(String brokerName, Properties props)
           
 
Method Summary
 BrokerSecurityConfig getBrokerSecurityConfig()
           
 DestinationSecurityConfig[] getDestinationSecurityConfigs()
           
 void installSecurity()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConfigLoader

public PropertiesConfigLoader(String brokerName,
                              Properties props)
                       throws IOException
Method Detail

getDestinationSecurityConfigs

public DestinationSecurityConfig[] getDestinationSecurityConfigs()

getBrokerSecurityConfig

public BrokerSecurityConfig getBrokerSecurityConfig()

installSecurity

public void installSecurity()


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