Package org.apache.activemq.security
Class SimpleAuthenticationPlugin
- java.lang.Object
-
- org.apache.activemq.security.SimpleAuthenticationPlugin
-
- All Implemented Interfaces:
BrokerPlugin
public class SimpleAuthenticationPlugin extends Object implements BrokerPlugin
A simple authentication plugin
-
-
Constructor Summary
Constructors Constructor Description SimpleAuthenticationPlugin()SimpleAuthenticationPlugin(List<?> users)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnonymousGroup()StringgetAnonymousUser()Map<String,Set<Principal>>getUserGroups()Map<String,String>getUserPasswords()BrokerinstallPlugin(Broker parent)Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.booleanisAnonymousAccessAllowed()voidsetAnonymousAccessAllowed(boolean anonymousAccessAllowed)voidsetAnonymousGroup(String anonymousGroup)voidsetAnonymousUser(String anonymousUser)voidsetUserGroups(Map<String,Set<Principal>> userGroups)Sets the groups a user is in.voidsetUserPasswords(Map<String,String> userPasswords)Sets the map indexed by user name with the value the passwordvoidsetUsers(List<?> users)Sets individual users for authentication
-
-
-
Constructor Detail
-
SimpleAuthenticationPlugin
public SimpleAuthenticationPlugin()
-
SimpleAuthenticationPlugin
public SimpleAuthenticationPlugin(List<?> users)
-
-
Method Detail
-
installPlugin
public Broker installPlugin(Broker parent)
Description copied from interface:BrokerPluginInstalls the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.- Specified by:
installPluginin interfaceBrokerPlugin
-
setUsers
public void setUsers(List<?> users)
Sets individual users for authentication
-
setAnonymousAccessAllowed
public void setAnonymousAccessAllowed(boolean anonymousAccessAllowed)
-
isAnonymousAccessAllowed
public boolean isAnonymousAccessAllowed()
-
setAnonymousUser
public void setAnonymousUser(String anonymousUser)
-
getAnonymousUser
public String getAnonymousUser()
-
setAnonymousGroup
public void setAnonymousGroup(String anonymousGroup)
-
getAnonymousGroup
public String getAnonymousGroup()
-
setUserGroups
public void setUserGroups(Map<String,Set<Principal>> userGroups)
Sets the groups a user is in. The key is the user name and the value is a Set of groups
-
-