Package dan.security.acl

Examples of dan.security.acl.MappedGroupDomain


            e.printStackTrace();
        }*/
    }
   
    protected JaasGroupAcl createAcl() {
        MappedGroupDomain domain = new MappedGroupDomain();
        domain.add(dan);
        domain.add(eric);
        domain.add(admin);
       
        JaasGroupAcl acl = new JaasGroupAcl(domain);
       
        acl.addAllowedPermission(dan, allTasks);
        acl.addDeniedPermission(dan, task1);
       
        acl.addAllowedPermission(eric, task1);
       
        //acl.addAllowedPermission(admin, allTasks);
        acl.addAllowedPermission(admin, new java.security.AllPermission());
        domain.addToGroup(admin, eric);
        domain.addToGroup(admin, dan);
       
        return acl;
    }
View Full Code Here

TOP

Related Classes of dan.security.acl.MappedGroupDomain

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.