This closes #637

This commit is contained in:
jbertram 2016-07-15 09:32:37 -05:00
commit baee468de2
1 changed files with 5 additions and 5 deletions

View File

@ -107,24 +107,24 @@ public class ArtemisBrokerWrapper extends ArtemisBrokerBase {
securityConfig.addRole("openwireSender", "sender"); securityConfig.addRole("openwireSender", "sender");
securityConfig.addUser("openwireSender", "SeNdEr"); securityConfig.addUser("openwireSender", "SeNdEr");
//sender cannot receive //sender cannot receive
Role senderRole = new Role("sender", true, false, false, false, true, true, false); Role senderRole = new Role("sender", true, false, false, false, true, true, false, false);
securityConfig.addRole("openwireReceiver", "receiver"); securityConfig.addRole("openwireReceiver", "receiver");
securityConfig.addUser("openwireReceiver", "ReCeIvEr"); securityConfig.addUser("openwireReceiver", "ReCeIvEr");
//receiver cannot send //receiver cannot send
Role receiverRole = new Role("receiver", false, true, false, false, true, true, false); Role receiverRole = new Role("receiver", false, true, false, false, true, true, false, true);
securityConfig.addRole("openwireGuest", "guest"); securityConfig.addRole("openwireGuest", "guest");
securityConfig.addUser("openwireGuest", "GuEsT"); securityConfig.addUser("openwireGuest", "GuEsT");
//guest cannot do anything //guest cannot do anything
Role guestRole = new Role("guest", false, false, false, false, false, false, false); Role guestRole = new Role("guest", false, false, false, false, false, false, false, false);
securityConfig.addRole("openwireDestinationManager", "manager"); securityConfig.addRole("openwireDestinationManager", "manager");
securityConfig.addUser("openwireDestinationManager", "DeStInAtIoN"); securityConfig.addUser("openwireDestinationManager", "DeStInAtIoN");
//guest cannot do anything //manager can only manage
Role destRole = new Role("manager", false, false, false, false, true, true, false); Role destRole = new Role("manager", false, false, false, false, true, true, false, false);
Map<String, Set<Role>> settings = server.getConfiguration().getSecurityRoles(); Map<String, Set<Role>> settings = server.getConfiguration().getSecurityRoles();
if (settings == null) { if (settings == null) {