Package org.jdesktop.wonderland.modules.security.weblib

Examples of org.jdesktop.wonderland.modules.security.weblib.UserGroupPrincipal


    {
        // get the set of groups from the resolver
        String[] groupNames = groupManager.getGroupsForUser(userId);

        // create a principal with the user and the groups they belong to
        Principal p = new UserGroupPrincipal(userId, groupNames);

        // use a callback to set the principal and groups for this user
        handler.handle(new Callback[] {
                    new CallerPrincipalCallback(s, p),
                    new GroupPrincipalCallback(s, groupNames) });
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.security.weblib.UserGroupPrincipal

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.