Package org.apache.activemq.security

Examples of org.apache.activemq.security.SimpleAuthenticationBroker


            }

        } else if (candidate instanceof DtoSimpleAuthenticationPlugin) {
            try {
                final SimpleAuthenticationPlugin updatedPlugin = fromDto(candidate, new SimpleAuthenticationPlugin());
                final SimpleAuthenticationBroker authenticationBroker =
                    (SimpleAuthenticationBroker) getBrokerService().getBroker().getAdaptor(SimpleAuthenticationBroker.class);
                addConnectionWork.add(new Runnable() {
                    public void run() {
                        authenticationBroker.setUserGroups(updatedPlugin.getUserGroups());
                        authenticationBroker.setUserPasswords(updatedPlugin.getUserPasswords());
                        authenticationBroker.setAnonymousAccessAllowed(updatedPlugin.isAnonymousAccessAllowed());
                        authenticationBroker.setAnonymousUser(updatedPlugin.getAnonymousUser());
                        authenticationBroker.setAnonymousGroup(updatedPlugin.getAnonymousGroup());
                    }
                });
            } catch (Exception e) {
                info("failed to apply SimpleAuthenticationPlugin modifications to SimpleAuthenticationBroker", e);
            }
View Full Code Here


            }

        } else if (candidate instanceof DtoSimpleAuthenticationPlugin) {
            try {
                final SimpleAuthenticationPlugin updatedPlugin = fromDto(candidate, new SimpleAuthenticationPlugin());
                final SimpleAuthenticationBroker authenticationBroker =
                    (SimpleAuthenticationBroker) getBrokerService().getBroker().getAdaptor(SimpleAuthenticationBroker.class);
                addConnectionWork.add(new Runnable() {
                    public void run() {
                        authenticationBroker.setUserGroups(updatedPlugin.getUserGroups());
                        authenticationBroker.setUserPasswords(updatedPlugin.getUserPasswords());
                        authenticationBroker.setAnonymousAccessAllowed(updatedPlugin.isAnonymousAccessAllowed());
                        authenticationBroker.setAnonymousUser(updatedPlugin.getAnonymousUser());
                        authenticationBroker.setAnonymousGroup(updatedPlugin.getAnonymousGroup());
                    }
                });
            } catch (Exception e) {
                info("failed to apply SimpleAuthenticationPlugin modifications to SimpleAuthenticationBroker", e);
            }
View Full Code Here

    @Override
    public void modify(Object existing, Object candidate) {
        try {
            final SimpleAuthenticationPlugin updatedPlugin = fromDto(candidate, new SimpleAuthenticationPlugin());
            final SimpleAuthenticationBroker authenticationBroker =
                (SimpleAuthenticationBroker) plugin.getBrokerService().getBroker().getAdaptor(SimpleAuthenticationBroker.class);
            plugin.addConnectionWork.add(new Runnable() {
                public void run() {
                    authenticationBroker.setUserGroups(updatedPlugin.getUserGroups());
                    authenticationBroker.setUserPasswords(updatedPlugin.getUserPasswords());
                    authenticationBroker.setAnonymousAccessAllowed(updatedPlugin.isAnonymousAccessAllowed());
                    authenticationBroker.setAnonymousUser(updatedPlugin.getAnonymousUser());
                    authenticationBroker.setAnonymousGroup(updatedPlugin.getAnonymousGroup());
                }
            });
        } catch (Exception e) {
            plugin.info("failed to apply SimpleAuthenticationPlugin modifications to SimpleAuthenticationBroker", e);
        }
View Full Code Here

TOP

Related Classes of org.apache.activemq.security.SimpleAuthenticationBroker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.