org.apache.activemq.security
Class SimpleAuthenticationBroker

java.lang.Object
  extended by org.apache.activemq.broker.BrokerFilter
      extended by org.apache.activemq.security.AbstractAuthenticationBroker
          extended by org.apache.activemq.security.SimpleAuthenticationBroker
All Implemented Interfaces:
Broker, Region, Service

public class SimpleAuthenticationBroker
extends AbstractAuthenticationBroker

Handles authenticating a users against a simple user name/password map.


Field Summary
 
Fields inherited from class org.apache.activemq.security.AbstractAuthenticationBroker
securityContexts
 
Fields inherited from class org.apache.activemq.broker.BrokerFilter
next
 
Constructor Summary
SimpleAuthenticationBroker(Broker next, Map<String,String> userPasswords, Map<String,Set<Principal>> userGroups)
           
 
Method Summary
 void addConnection(ConnectionContext context, ConnectionInfo info)
          A client is establishing a connection with the broker.
 void setAnonymousAccessAllowed(boolean anonymousAccessAllowed)
           
 void setAnonymousGroup(String anonymousGroup)
           
 void setAnonymousUser(String anonymousUser)
           
 
Methods inherited from class org.apache.activemq.security.AbstractAuthenticationBroker
refresh, removeConnection, removeDestination
 
Methods inherited from class org.apache.activemq.broker.BrokerFilter
acknowledge, addBroker, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, removeBroker, removeConsumer, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAuthenticationBroker

public SimpleAuthenticationBroker(Broker next,
                                  Map<String,String> userPasswords,
                                  Map<String,Set<Principal>> userGroups)
Method Detail

setAnonymousAccessAllowed

public void setAnonymousAccessAllowed(boolean anonymousAccessAllowed)

setAnonymousUser

public void setAnonymousUser(String anonymousUser)

setAnonymousGroup

public void setAnonymousGroup(String anonymousGroup)

addConnection

public void addConnection(ConnectionContext context,
                          ConnectionInfo info)
                   throws Exception
Description copied from interface: Broker
A client is establishing a connection with the broker.

Specified by:
addConnection in interface Broker
Overrides:
addConnection in class BrokerFilter
Throws:
Exception - TODO


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.