Examples of PicketLinkGroup


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

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

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

        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

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

        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
Copyright © 2018 www.massapi.com. 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.