Package org.picketlink.identity.federation.bindings.jboss.subject

Examples of org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkGroup


        if (StringUtil.isNotNull(roleKey)) {
            roleKeys.addAll(StringUtil.tokenize(roleKey));
        }

        String groupName = SecurityConstants.ROLES_IDENTIFIER;
        Group rolesGroup = new PicketLinkGroup(groupName);
        List<String> roles = AssertionUtil.getRoles(assertion, roleKeys);
        for (String role : roles) {
            rolesGroup.addMember(new SimplePrincipal(role));
        }

        return new Group[] { rolesGroup };
    }
View Full Code Here


        if (StringUtil.isNotNull(roleKey)) {
            roleKeys.addAll(StringUtil.tokenize(roleKey));
        }

        String groupName = SecurityConstants.ROLES_IDENTIFIER;
        Group rolesGroup = new PicketLinkGroup(groupName);
        List<String> roles = AssertionUtil.getRoles(assertion, roleKeys);
        for (String role : roles) {
            rolesGroup.addMember(new SimplePrincipal(role));
        }

        return new Group[] { rolesGroup };
    }
View Full Code Here

        SecurityManager sm = System.getSecurityManager();
       
        if (sm != null) {
            return AccessController.doPrivileged(new PrivilegedAction<Group>() {
                public Group run() {
                    Group theGroup = new PicketLinkGroup(SecurityConstants.ROLES_IDENTIFIER);
                    for (String role : roles) {
                        theGroup.addMember(new SimplePrincipal(role));
                    }
                    return theGroup;
                }
            });
        } else {
            Group theGroup = new PicketLinkGroup(SecurityConstants.ROLES_IDENTIFIER);
            for (String role : roles) {
                theGroup.addMember(new SimplePrincipal(role));
            }
            return theGroup;
        }
    }
View Full Code Here

        SecurityManager sm = System.getSecurityManager();
       
        if (sm != null) {
            return AccessController.doPrivileged(new PrivilegedAction<Group>() {
                public Group run() {
                    Group theGroup = new PicketLinkGroup(SecurityConstants.ROLES_IDENTIFIER);
                    for (String role : roles) {
                        theGroup.addMember(new SimplePrincipal(role));
                    }
                    return theGroup;
                }
            });
        } else {
            Group theGroup = new PicketLinkGroup(SecurityConstants.ROLES_IDENTIFIER);
            for (String role : roles) {
                theGroup.addMember(new SimplePrincipal(role));
            }
            return theGroup;
        }
    }
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkGroup

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.