Interface ActiveMQSecurityManager2
- All Superinterfaces:
ActiveMQSecurityManager
This is an evolution of
ActiveMQSecurityManager that adds the ability to perform authorization taking the
destination address into account.-
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidateUser(String user, String password, X509Certificate[] certificates) is this a valid user.booleanvalidateUserAndRole(String user, String password, Set<org.apache.activemq.artemis.core.security.Role> roles, org.apache.activemq.artemis.core.security.CheckType checkType, String address, RemotingConnection connection) Determine whether the given user is valid and whether they have the correct role for the given destination address.Methods inherited from interface org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager
getDomain, getUserFromSubject, init, validateUser, validateUserAndRole
-
Method Details
-
validateUser
is this a valid user.This method is called instead of
ActiveMQSecurityManager.validateUser(String, String).- Parameters:
user- the userpassword- the users password- Returns:
trueif a valid user
-
validateUserAndRole
boolean validateUserAndRole(String user, String password, Set<org.apache.activemq.artemis.core.security.Role> roles, org.apache.activemq.artemis.core.security.CheckType checkType, String address, RemotingConnection connection) Determine whether the given user is valid and whether they have the correct role for the given destination address.This method is called instead of
ActiveMQSecurityManager.validateUserAndRole(String, String, Set, CheckType).- Parameters:
user- the userpassword- the user's passwordroles- the user's rolescheckType- which permission to validateaddress- the address for which to perform authorizationconnection- the user's connection- Returns:
trueif the user is valid and they have the correct roles for the given destination address
-