Interface ActiveMQSecurityManager
-
- All Known Subinterfaces:
ActiveMQSecurityManager2,ActiveMQSecurityManager3,ActiveMQSecurityManager4,ActiveMQSecurityManager5
- All Known Implementing Classes:
ActiveMQBasicSecurityManager,ActiveMQJAASSecurityManager,ActiveMQSecurityManagerImpl
public interface ActiveMQSecurityManagerUse to validate whether a user has is valid to connect to the server and perform certain functions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetDomain()default ActiveMQSecurityManagerinit(Map<String,String> properties)Initialize the manager with the given configuration properties.booleanvalidateUser(String user, String password)is this a valid user.booleanvalidateUserAndRole(String user, String password, Set<Role> roles, CheckType checkType)is this a valid user and do they have the correct role
-
-
-
Method Detail
-
getDomain
default String getDomain()
-
validateUser
boolean validateUser(String user, String password)
is this a valid user.- Parameters:
user- the userpassword- the users password- Returns:
- true if a valid user
-
validateUserAndRole
boolean validateUserAndRole(String user, String password, Set<Role> roles, CheckType checkType)
is this a valid user and do they have the correct role- Parameters:
user- the userpassword- the users passwordroles- the roles the user hascheckType- the type of check to perform- Returns:
- true if the user is valid and they have the correct roles
-
init
default ActiveMQSecurityManager init(Map<String,String> properties)
Initialize the manager with the given configuration properties. This method is called by the broker when the file-based configuration is read. If you're creating/configuring the plugin programmatically then the recommended approach is to simply use the manager's getters/setters rather than this method.- Parameters:
properties- name/value pairs used to configure the ActiveMQSecurityManager instance- Returns:
thisinstance
-
-