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;
}