@Before public void setUp() throws Exception { List<Permission> permSet = Lists.newArrayList(); permSet.add(new PackagePermission("*", PackagePermission.EXPORTONLY)); permSet.add(new PackagePermission("*", PackagePermission.IMPORT)); permSet.add(new AdaptPermission("*", AdaptPermission.ADAPT)); permSet.add(new ConfigurationPermission("*", ConfigurationPermission.CONFIGURE)); permSet.add(new AdminPermission("*", AdminPermission.METADATA)); defaultPermissions = permSet; List<Permission> adminPermSet = Lists.newArrayList(); adminPermSet.add(new ServicePermission(ApplicationAdminService.class.getName(), ServicePermission.GET)); adminServicePermissions = adminPermSet; testPermission = new org.onosproject.security.Permission("testClass", "APP_READ", "testActions"); testPermissions = new HashSet<org.onosproject.security.Permission>(); testPermissions.add(testPermission); testJavaPerm = new AppPermission("testName"); testJavaPerms = new HashSet<Permission>(); testJavaPerms.add(testJavaPerm); }
protected List getTestPermissions() { List list = super.getTestPermissions(); list.add(new FilePermission("<<ALL FILES>>", "read")); list.add(new AdminPermission("*", AdminPermission.EXECUTE)); list.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); list.add(new AdminPermission("*", AdminPermission.RESOLVE)); list.add(new AdminPermission("*", AdminPermission.METADATA)); return list; }
protected List<Permission> getTestPermissions() { List<Permission> list = super.getTestPermissions(); list.add(new AdminPermission("*", AdminPermission.METADATA)); list.add(new AdminPermission("*", AdminPermission.LISTENER)); list.add(new AdminPermission("*", AdminPermission.EXECUTE)); list.add(new AdminPermission("*", AdminPermission.RESOURCE)); return list; }
protected List getTestPermissions() { List perms = super.getTestPermissions(); // export package perms.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); perms.add(new AdminPermission("*", AdminPermission.RESOLVE)); return perms; }
protected List getTestPermissions() { List perms = super.getTestPermissions(); // export package perms.add(new AdminPermission("*", AdminPermission.EXECUTE)); perms.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); perms.add(new AdminPermission("*", AdminPermission.RESOLVE)); perms.add(new FilePermission("<<ALL FILES>>", "read")); return perms; }
protected List getTestPermissions() { List perms = super.getTestPermissions(); // export package perms.add(new FilePermission("<<ALL FILES>>", "read")); perms.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); perms.add(new AdminPermission("*", AdminPermission.EXECUTE)); perms.add(new AdminPermission("*", AdminPermission.RESOLVE)); return perms; }
protected List getTestPermissions() { List perms = super.getTestPermissions(); // export package perms.add(new AdminPermission("*", AdminPermission.EXECUTE)); perms.add(new PropertyPermission("*", "write")); perms.add(new PropertyPermission("*", "read")); perms.add(new FilePermission("<<ALL FILES>>", "read")); perms.add(new FilePermission("<<ALL FILES>>", "delete")); perms.add(new FilePermission("<<ALL FILES>>", "write")); perms.add(new ConfigurationPermission("*", ConfigurationPermission.CONFIGURE)); return perms; }
/** * Since the test is creating some application contexts, give it some * privileges. */ protected List getTestPermissions() { List perms = super.getTestPermissions(); perms.add(new AdminPermission("(name=org.eclipse.gemini.blueprint.iandt.scope.a)", "*")); perms.add(new AllPermission()); return perms; }
protected List getTestPermissions() { List list = super.getTestPermissions(); list.add(new FilePermission("<<ALL FILES>>", "read")); list.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); list.add(new AdminPermission("*", AdminPermission.EXECUTE)); list.add(new AdminPermission("*", AdminPermission.RESOLVE)); return list; }
protected List getTestPermissions() { List perms = super.getTestPermissions(); perms.add(new FilePermission("<<ALL FILES>>", "read")); perms.add(new AdminPermission("*", AdminPermission.EXECUTE)); perms.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); perms.add(new AdminPermission("*", AdminPermission.RESOLVE)); perms.add(new PropertyPermission("*", "read")); perms.add(new PropertyPermission("*", "write")); return perms; }
protected List getTestPermissions() { List perms = super.getTestPermissions(); // export package perms.add(new PropertyPermission("*", AdminPermission.EXECUTE)); perms.add(new FilePermission("<<ALL FILES>>", "read")); return perms; }
protected List getTestPermissions() { List list = super.getTestPermissions(); list.add(new FilePermission("<<ALL FILES>>", "read")); list.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); list.add(new AdminPermission("*", AdminPermission.EXECUTE)); list.add(new AdminPermission("*", AdminPermission.RESOLVE)); list.add(new AdminPermission("*", AdminPermission.METADATA)); return list; }
protected List getTestPermissions() { List perms = super.getTestPermissions(); perms.add(new FilePermission("<<ALL FILES>>", "read")); perms.add(new AdminPermission("*", AdminPermission.EXECUTE)); perms.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); perms.add(new AdminPermission("*", AdminPermission.RESOLVE)); perms.add(new AdminPermission("*", AdminPermission.METADATA)); return perms; }
protected List getTestPermissions() { List perms = super.getTestPermissions(); // export package perms.add(new AdminPermission("*", AdminPermission.EXECUTE)); perms.add(new AdminPermission("*", AdminPermission.LIFECYCLE)); return perms; }
protected List getTestPermissions() { List list = super.getTestPermissions(); list.add(new FilePermission("<<ALL FILES>>", "read")); // log files list.add(new FilePermission("<<ALL FILES>>", "delete")); list.add(new FilePermission("<<ALL FILES>>", "write")); list.add(new AdminPermission("*", AdminPermission.LISTENER)); list.add(new AdminPermission("(name=" + FRAGMENT_1 + ")", AdminPermission.RESOURCE)); list.add(new AdminPermission("(name=" + FRAGMENT_2 + ")", AdminPermission.RESOURCE)); return list; }
public static List<Permission> getDefaultPerms() { List<Permission> permSet = Lists.newArrayList(); permSet.add(new PackagePermission("*", PackagePermission.EXPORTONLY)); permSet.add(new PackagePermission("*", PackagePermission.IMPORT)); permSet.add(new AdaptPermission("*", AdaptPermission.ADAPT)); permSet.add(new ConfigurationPermission("*", ConfigurationPermission.CONFIGURE)); permSet.add(new AdminPermission("*", AdminPermission.METADATA)); return permSet; }
@Test public void testGetDefaultPerms() { List<Permission> permSet = Lists.newArrayList(); assertTrue(permSet.isEmpty()); permSet.add(new PackagePermission("*", PackagePermission.EXPORTONLY)); permSet.add(new PackagePermission("*", PackagePermission.IMPORT)); permSet.add(new AdaptPermission("*", AdaptPermission.ADAPT)); permSet.add(new ConfigurationPermission("*", ConfigurationPermission.CONFIGURE)); permSet.add(new AdminPermission("*", AdminPermission.METADATA)); assertEquals(5, permSet.size()); }
protected List getTestPermissions() { List list = super.getTestPermissions(); list.add(new AdminPermission("*", AdminPermission.METADATA)); list.add(new AdminPermission("*", AdminPermission.LISTENER)); list.add(new AdminPermission("*", AdminPermission.EXECUTE)); list.add(new AdminPermission("*", AdminPermission.RESOURCE)); return list; }
/** * Since the test is creating some application contexts, give it some * privileges. */ protected List getTestPermissions() { List perms = super.getTestPermissions(); perms.add(new AdminPermission("(name=org.springframework.osgi.iandt.scope.a)", AdminPermission.RESOURCE)); perms.add(new AdminPermission("(name=org.springframework.osgi.iandt.scope.a)", AdminPermission.METADATA)); perms.add(new AdminPermission("(name=org.springframework.osgi.iandt.scope.a)", AdminPermission.CLASS)); return perms; }