ActiveMQSecurityManager (ActiveMQ Artemis Web 1.1.0.wildfly-010 API)
Date: 2015-12-18

org.apache.activemq.artemis.spi.core.security

## Interface ActiveMQSecurityManager

- All Known Implementing Classes:
    ActiveMQSecurityManagerImpl, JAASSecurityManager

      public interface ActiveMQSecurityManager

  Use to validate whether a user has is valid to connect to the server and perform certain functions

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `validateUser(String user, String password)` is this a valid user.
    `boolean` | `validateUserAndRole(String user, String password, Set<org.apache.activemq.artemis.core.security.Role> roles, org.apache.activemq.artemis.core.security.CheckType checkType)` is this a valid user and do they have the correct role

- - ### Method Detail

    - #### validateUser

          boolean validateUser(String user,
                               String password)

      is this a valid user.
      Parameters:
        `user` - the user
        `password` - the users password
      Returns:
        true if 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)

      is this a valid user and do they have the correct role
      Parameters:
        `user` - the user
        `password` - the users password
        `roles` - the roles the user has
        `checkType` - the type of check to perform
      Returns:
        true if the user is valid and they have the correct roles

Copyright © 2015. All rights reserved.