org.apache.activemq.security
Class SimpleAuthenticationPlugin

java.lang.Object
  extended by org.apache.activemq.security.SimpleAuthenticationPlugin
All Implemented Interfaces:
BrokerPlugin

public class SimpleAuthenticationPlugin
extends java.lang.Object
implements BrokerPlugin

A simple authentication plugin


Constructor Summary
SimpleAuthenticationPlugin()
           
SimpleAuthenticationPlugin(java.util.List users)
           
 
Method Summary
 java.util.Map<java.lang.String,java.util.Set<GroupPrincipal>> getUserGroups()
           
 java.util.Map<java.lang.String,java.lang.String> getUserPasswords()
           
 Broker installPlugin(Broker parent)
          Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.
 void setAnonymousAccessAllowed(boolean anonymousAccessAllowed)
           
 void setAnonymousGroup(java.lang.String anonymousGroup)
           
 void setAnonymousUser(java.lang.String anonymousUser)
           
 void setUserGroups(java.util.Map<java.lang.String,java.util.Set<GroupPrincipal>> userGroups)
          Sets the groups a user is in.
 void setUserPasswords(java.util.Map<java.lang.String,java.lang.String> userPasswords)
          Sets the map indexed by user name with the value the password
 void setUsers(java.util.List users)
          Sets individual users for authentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAuthenticationPlugin

public SimpleAuthenticationPlugin()

SimpleAuthenticationPlugin

public SimpleAuthenticationPlugin(java.util.List users)
Method Detail

installPlugin

public Broker installPlugin(Broker parent)
Description copied from interface: BrokerPlugin
Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.

Specified by:
installPlugin in interface BrokerPlugin

getUserGroups

public java.util.Map<java.lang.String,java.util.Set<GroupPrincipal>> getUserGroups()

setUsers

public void setUsers(java.util.List users)
Sets individual users for authentication


setAnonymousAccessAllowed

public void setAnonymousAccessAllowed(boolean anonymousAccessAllowed)

setAnonymousUser

public void setAnonymousUser(java.lang.String anonymousUser)

setAnonymousGroup

public void setAnonymousGroup(java.lang.String anonymousGroup)

setUserGroups

public void setUserGroups(java.util.Map<java.lang.String,java.util.Set<GroupPrincipal>> userGroups)
Sets the groups a user is in. The key is the user name and the value is a Set of groups


getUserPasswords

public java.util.Map<java.lang.String,java.lang.String> getUserPasswords()

setUserPasswords

public void setUserPasswords(java.util.Map<java.lang.String,java.lang.String> userPasswords)
Sets the map indexed by user name with the value the password



Copyright © 2005-2011. All Rights Reserved.