use of org.apache.activemq.security.AuthorizationPlugin in project activemq-artemis by apache.
the class AuthorizationFromAdminViewTest method createBroker.
private void createBroker() throws Exception {
broker = BrokerFactory.createBroker("broker:(vm://localhost)");
broker.setPersistent(false);
broker.setBrokerName(getName());
AuthorizationPlugin plugin = new AuthorizationPlugin();
plugin.setMap(new SimpleAuthorizationMap());
BrokerPlugin[] plugins = new BrokerPlugin[] { plugin };
broker.setPlugins(plugins);
broker.start();
}
use of org.apache.activemq.security.AuthorizationPlugin in project activemq-artemis by apache.
the class SecureDLQTest method createBroker.
@Override
protected BrokerService createBroker() throws Exception {
BrokerService broker = super.createBroker();
AuthorizationPlugin authorizationPlugin = new AuthorizationPlugin(createAuthorizationMap());
broker.setPlugins(new BrokerPlugin[] { authorizationPlugin, new SimpleSecurityBrokerSystemTest.SimpleAuthenticationFactory() });
return broker;
}
Aggregations