Interface ActiveMQSecurityManager5

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.security.auth.Subject authenticate​(java.lang.String user, java.lang.String password, RemotingConnection remotingConnection, java.lang.String securityDomain)
      is this a valid user.
      boolean authorize​(javax.security.auth.Subject subject, java.util.Set<org.apache.activemq.artemis.core.security.Role> roles, org.apache.activemq.artemis.core.security.CheckType checkType, java.lang.String address)
      Determine whether the given user has the correct role for the given check type.
    • Method Detail

      • authenticate

        javax.security.auth.Subject authenticate​(java.lang.String user,
                                                 java.lang.String password,
                                                 RemotingConnection remotingConnection,
                                                 java.lang.String securityDomain)
        is this a valid user. This method is called instead of ActiveMQSecurityManager.validateUser(String, String).
        Parameters:
        user - the user
        password - the user's password
        remotingConnection - the user's connection which contains any corresponding SSL certs
        securityDomain - the name of the JAAS security domain to use (can be null)
        Returns:
        the Subject of the authenticated user, else null
      • authorize

        boolean authorize​(javax.security.auth.Subject subject,
                          java.util.Set<org.apache.activemq.artemis.core.security.Role> roles,
                          org.apache.activemq.artemis.core.security.CheckType checkType,
                          java.lang.String address)
        Determine whether the given user has the correct role for the given check type. This method is called instead of ActiveMQSecurityManager.validateUserAndRole(String, String, Set, CheckType).
        Parameters:
        subject - the Subject to authorize
        roles - the roles configured in the security-settings
        checkType - which permission to validate
        address - the address (or FQQN) to grant access to
        Returns:
        true if the user is authorized, else false