Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java126 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/
DAccessControlException.java48 private Permission perm; field in AccessControlException
70 perm = p; in AccessControlException()
80 return perm; in getPermission()
DAccessControlContext.java49 public void checkPermission(Permission perm) in checkPermission() argument
DAccessController.java99 public static void checkPermission(Permission perm) in checkPermission() argument
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileModeAttribute.java50 for (PosixFilePermission perm: perms) { in toUnixMode()
51 if (perm == null) in toUnixMode()
53 switch (perm) { in toUnixMode()
DUnixFileSystemProvider.java490 FilePermission perm = new FilePermission(link.getPathForPermissionCheck(), in readSymbolicLink() local
492 sm.checkPermission(perm); in readSymbolicLink()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java150 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 …]
DFiles2Test.java223 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 …]
DDefaultFileSystemProviderTest.java426 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()
DDefaultFileSystemProvider2Test.java534 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/
DOldRuntimeTest.java72 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/
DSecurityManager.java115 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/
DURLClassPath.java441 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/
DLambdaTestHelpers.java419 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/
DLambdaTestHelpers.java418 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/
DAclEntry.java396 for (AclEntryPermission perm: perms) { in toString()
397 sb.append(perm.name()); in toString()
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java84 for (PosixFilePermission perm: actual) { in checkSecure()
85 if (!requested.contains(perm)) { in checkSecure()
/libcore/ojluni/src/main/java/java/util/prefs/
DFileSystemPreferences.java891 int perm = (usernode? USER_READ_WRITE: USER_RW_ALL_READ);
892 result = lockFile0(lockFile.getCanonicalPath(), perm, shared);
/libcore/ojluni/src/main/java/java/util/
DCalendar.java3519 … 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/
DJarFileTest.java147 public void checkPermission(Permission perm) {
148 if (perm.getName().equals(forbidenPermissionName)) {
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1154 void addPermission(Permission perm) { perms.add(perm); }
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java56 public void checkPermission(Permission perm) {}
476 public void checkPermission(Permission perm) { in test_setSocketImplFactoryLjava_net_SocketImplFactory()