Interface ActiveMQSecurityManager3
-
- All Superinterfaces:
ActiveMQSecurityManager
public interface ActiveMQSecurityManager3 extends ActiveMQSecurityManager
Used to validate whether a user is authorized to connect to the server and perform certain functions on certain destinations. This is an evolution ofActiveMQSecurityManager
andActiveMQSecurityManager2
that adds the ability to determine the identity of the validated user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
validateUser(String user, String password, RemotingConnection remotingConnection)
is this a valid user.String
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 remotingConnection)
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 Detail
-
validateUser
String validateUser(String user, String password, RemotingConnection remotingConnection)
is this a valid user. This method is called instead ofActiveMQSecurityManager.validateUser(String, String)
.- Parameters:
user
- the userpassword
- the users passwordremotingConnection
-- Returns:
- the name of the validated user or null if the user isn't validated
-
validateUserAndRole
String 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 remotingConnection)
Determine whether the given user is valid and whether they have the correct role for the given destination address. This method is called instead ofActiveMQSecurityManager.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 authorizationremotingConnection
- the user's connection- Returns:
- the name of the validated user or null if the user isn't validated
-
-