Package org.apache.activemq.security
Class SimpleAuthenticationPlugin
java.lang.Object
org.apache.activemq.security.SimpleAuthenticationPlugin
- All Implemented Interfaces:
BrokerPlugin
A simple authentication plugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninstallPlugin(Broker parent) Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.booleanvoidsetAnonymousAccessAllowed(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 passwordvoidSets individual users for authentication
-
Constructor Details
-
SimpleAuthenticationPlugin
public SimpleAuthenticationPlugin() -
SimpleAuthenticationPlugin
-
-
Method Details
-
installPlugin
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
-
getUserGroups
-
setUsers
Sets individual users for authentication -
setAnonymousAccessAllowed
public void setAnonymousAccessAllowed(boolean anonymousAccessAllowed) -
isAnonymousAccessAllowed
public boolean isAnonymousAccessAllowed() -
setAnonymousUser
-
getAnonymousUser
-
setAnonymousGroup
-
getAnonymousGroup
-
setUserGroups
Sets the groups a user is in. The key is the user name and the value is a Set of groups -
getUserPasswords
-
setUserPasswords
Sets the map indexed by user name with the value the password
-