Package org.apache.qpid.server.security.group

Examples of org.apache.qpid.server.security.group.GroupPrincipalAccessor


            _securityManager = new SecurityManager(_configuration.getConfig());

            _groupManagerList = createGroupManagers(_configuration);

            _authenticationManagerRegistry = createAuthenticationManagerRegistry(_configuration, new GroupPrincipalAccessor(_groupManagerList));

            if(!_authManagerChangeListeners.isEmpty())
            {
                for(IAuthenticationManagerRegistry.RegistryChangeListener listener : _authManagerChangeListeners)
                {
View Full Code Here


        getAndAssertGroupPrincipals(_group1);
    }

    private void getAndAssertGroupPrincipals(Principal... expectedGroups)
    {
        GroupPrincipalAccessor groupPrincipalAccessor = new GroupPrincipalAccessor(Arrays.asList(_groupManager1, _groupManager2));

        Set<Principal> actualGroupPrincipals = groupPrincipalAccessor.getGroupPrincipals(USERNAME);

        Set<Principal> expectedGroupPrincipals = new HashSet<Principal>(Arrays.asList(expectedGroups));

        assertEquals(expectedGroupPrincipals, actualGroupPrincipals);
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.security.group.GroupPrincipalAccessor

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.