Package dan.security.acl

Examples of dan.security.acl.NamedGroup


        //get group name:
        String groupName = elem.getAttributeValue("name");
        if (groupName == null)
            throw new IOException("Invalid principal found: missing 'name' attribute");
       
        NamedGroup group = new NamedGroup(groupName);
       
        //members:
        List children = elem.getChildren();
        Element child;
        for (int i=0; i<children.size(); i++) {
            child = (Element)children.get(i);
            String name = child.getName().toLowerCase();
           
            if (name.equals(this.childName)) {
                Principal member = (Principal)principalSerializer.read(child);
                group.addMember(member);
            }
        }
       
        return group;
    }
View Full Code Here

TOP

Related Classes of dan.security.acl.NamedGroup

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.