Interface ActiveMQSecurityManager4
-
- All Superinterfaces:
ActiveMQSecurityManager
public interface ActiveMQSecurityManager4 extends ActiveMQSecurityManager
Used to validate whether a user is authorized to connect to the server and perform certain functions on certain addresses This is an evolution ofActiveMQSecurityManager3
that adds the ability to specify the JAAS domain per call.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
validateUser(java.lang.String user, java.lang.String password, RemotingConnection remotingConnection, java.lang.String securityDomain)
is this a valid user.java.lang.String
validateUserAndRole(java.lang.String user, java.lang.String password, java.util.Set<org.apache.activemq.artemis.core.security.Role> roles, org.apache.activemq.artemis.core.security.CheckType checkType, java.lang.String address, RemotingConnection remotingConnection, java.lang.String securityDomain)
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, init, validateUser, validateUserAndRole
-
-
-
-
Method Detail
-
validateUser
java.lang.String validateUser(java.lang.String user, java.lang.String password, RemotingConnection remotingConnection, java.lang.String securityDomain)
is this a valid user. This method is called instead ofActiveMQSecurityManager.validateUser(String, String)
.- Parameters:
user
- the userpassword
- the users passwordremotingConnection
-securityDomain
- the name of the JAAS security domain to use (can be null)- Returns:
- the name of the validated user or null if the user isn't validated
-
validateUserAndRole
java.lang.String validateUserAndRole(java.lang.String user, java.lang.String password, java.util.Set<org.apache.activemq.artemis.core.security.Role> roles, org.apache.activemq.artemis.core.security.CheckType checkType, java.lang.String address, RemotingConnection remotingConnection, java.lang.String securityDomain)
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 connectionsecurityDomain
- the name of the JAAS security domain to use (can be null)- Returns:
- the name of the validated user or null if the user isn't validated
-
-