/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | JarFileFactory.java | 126 Permission perm = getPermission(result); in getCachedJarFile() local 127 if (perm != null) { in getCachedJarFile() 131 sm.checkPermission(perm); in getCachedJarFile() 135 if ((perm instanceof java.io.FilePermission) && in getCachedJarFile() 136 perm.getActions().indexOf("read") != -1) { in getCachedJarFile() 137 sm.checkRead(perm.getName()); in getCachedJarFile() 138 } else if ((perm instanceof in getCachedJarFile() 140 perm.getActions().indexOf("connect") != -1) { in getCachedJarFile()
|
/libcore/ojluni/src/main/java/java/security/ |
D | AccessControlException.java | 48 private Permission perm; field in AccessControlException 70 perm = p; in AccessControlException() 80 return perm; in getPermission()
|
D | AccessControlContext.java | 49 public void checkPermission(Permission perm) in checkPermission() argument
|
D | AccessController.java | 99 public static void checkPermission(Permission perm) in checkPermission() argument
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileModeAttribute.java | 50 for (PosixFilePermission perm: perms) { in toUnixMode() 51 if (perm == null) in toUnixMode() 53 switch (perm) { in toUnixMode()
|
D | UnixFileSystemProvider.java | 490 FilePermission perm = new FilePermission(link.getPathForPermissionCheck(), in readSymbolicLink() local 492 sm.checkPermission(perm); in readSymbolicLink()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FilesTest.java | 150 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createFile$String$Attr() local 151 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr() 156 perm = PosixFilePermissions.fromString("rw-------"); in test_createFile$String$Attr() 157 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr() 172 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory_delegation() local 173 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory_delegation() 201 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectories$Path$Attr() local 202 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr() 208 perm = PosixFilePermissions.fromString("rw-------"); in test_createDirectories$Path$Attr() 209 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr() [all …]
|
D | Files2Test.java | 223 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_getPosixFilePermissions() local 224 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_getPosixFilePermissions() 239 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_setPosixFilePermissions() local 240 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions() 241 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), perm); in test_setPosixFilePermissions() local 247 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_setPosixFilePermissions_NPE() local 248 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions_NPE() 250 Files.setPosixFilePermissions(null, perm); in test_setPosixFilePermissions_NPE() 525 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("-wxrwxrwx"); in test_isReadable() local 526 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), perm); in test_isReadable() local [all …]
|
D | DefaultFileSystemProviderTest.java | 426 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory$String$FileAttr() local 427 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr() 432 perm = PosixFilePermissions.fromString("rw-------"); in test_createDirectory$String$FileAttr() 433 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr() 442 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory$String$FileAttr_NPE() local 443 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr_NPE() 503 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createSymbolicLink$Path$Attr() local 505 .asFileAttribute(perm); in test_createSymbolicLink$Path$Attr() 514 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createSymbolicLink$Path$Attr_NPE() local 516 .asFileAttribute(perm); in test_createSymbolicLink$Path$Attr_NPE()
|
D | DefaultFileSystemProvider2Test.java | 534 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_newFileChannel_withFileAttributes() local 536 PosixFilePermissions.asFileAttribute(perm); in test_newFileChannel_withFileAttributes()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldRuntimeTest.java | 72 public void checkPermission(Permission perm) { in test_addShutdownHook() 73 if (perm.getName().equals("shutdownHooks")) { in test_addShutdownHook() 111 public void checkPermission(Permission perm) { in test_execLjava_lang_StringLjava_lang_StringArray() 112 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringLjava_lang_StringArray() 158 public void checkPermission(Permission perm) { in test_execLjava_lang_StringArrayLjava_lang_StringArray() 159 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringArrayLjava_lang_StringArray() 204 public void checkPermission(Permission perm) { in test_execLjava_lang_StringLjava_lang_StringArrayLjava_io_File() 205 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringLjava_lang_StringArrayLjava_io_File() 253 public void checkPermission(Permission perm) { in test_execLjava_lang_StringArrayLjava_lang_StringArrayLjava_io_File() 254 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringArrayLjava_lang_StringArrayLjava_io_File()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | SecurityManager.java | 115 public void checkPermission(Permission perm) { in checkPermission() argument 119 public void checkPermission(Permission perm, Object context) { in checkPermission() argument
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | URLClassPath.java | 441 Permission perm = urlConnection.getPermission(); 442 if (perm != null) { 444 security.checkPermission(perm); 448 if ((perm instanceof java.io.FilePermission) && 449 perm.getActions().indexOf("read") != -1) { 450 security.checkRead(perm.getName()); 451 } else if ((perm instanceof 453 perm.getActions().indexOf("connect") != -1) {
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LambdaTestHelpers.java | 419 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions); 441 public static <T> List<List<T>> perm(List<T> l) { 444 for (List<T> perm : perm(sub(l, i))) { 445 perm.add(0, l.get(i)); 446 result.add(perm);
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LambdaTestHelpers.java | 418 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions); 440 public static <T> List<List<T>> perm(List<T> l) { 443 for (List<T> perm : perm(sub(l, i))) { 444 perm.add(0, l.get(i)); 445 result.add(perm);
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | AclEntry.java | 396 for (AclEntryPermission perm: perms) { in toString() 397 sb.append(perm.name()); in toString()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | PosixFileAttributeViewTest.java | 84 for (PosixFilePermission perm: actual) { in checkSecure() 85 if (!requested.contains(perm)) { in checkSecure()
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | FileSystemPreferences.java | 891 int perm = (usernode? USER_READ_WRITE: USER_RW_ALL_READ); 892 result = lockFile0(lockFile.getCanonicalPath(), perm, shared);
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 3519 … RuntimePermission perm = new RuntimePermission("accessClassInPackage.sun.util.calendar"); 3520 PermissionCollection perms = perm.newPermissionCollection(); 3521 perms.add(perm);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarFileTest.java | 147 public void checkPermission(Permission perm) { 148 if (perm.getName().equals(forbidenPermissionName)) {
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | JSR166TestCase.java | 1154 void addPermission(Permission perm) { perms.add(perm); }
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketTest.java | 56 public void checkPermission(Permission perm) {} 476 public void checkPermission(Permission perm) { in test_setSocketImplFactoryLjava_net_SocketImplFactory()
|