Interface ActiveMQSecurityManager3

    • 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, org.apache.activemq.artemis.spi.core.protocol.RemotingConnection remotingConnection)
      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, org.apache.activemq.artemis.spi.core.protocol.RemotingConnection remotingConnection)
      Determine whether the given user is valid and whether they have the correct role for the given destination address.
    • Method Detail

      • validateUser

        java.lang.String validateUser​(java.lang.String user,
                                      java.lang.String password,
                                      org.apache.activemq.artemis.spi.core.protocol.RemotingConnection remotingConnection)
        is this a valid user. This method is called instead of ActiveMQSecurityManager.validateUser(String, String).
        Parameters:
        user - the user
        password - the users password
        remotingConnection -
        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,
                                             org.apache.activemq.artemis.spi.core.protocol.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 of ActiveMQSecurityManager.validateUserAndRole(String, String, Set, CheckType).
        Parameters:
        user - the user
        password - the user's password
        roles - the user's roles
        checkType - which permission to validate
        address - the address for which to perform authorization
        remotingConnection - the user's connection
        Returns:
        the name of the validated user or null if the user isn't validated