/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | PosixFilePermissions.java | 73 public static String toString(Set<PosixFilePermission> perms) { in toString() argument 75 writeBits(sb, perms.contains(OWNER_READ), perms.contains(OWNER_WRITE), in toString() 76 perms.contains(OWNER_EXECUTE)); in toString() 77 writeBits(sb, perms.contains(GROUP_READ), perms.contains(GROUP_WRITE), in toString() 78 perms.contains(GROUP_EXECUTE)); in toString() 79 writeBits(sb, perms.contains(OTHERS_READ), perms.contains(OTHERS_WRITE), in toString() 80 perms.contains(OTHERS_EXECUTE)); in toString() 126 public static Set<PosixFilePermission> fromString(String perms) { in fromString() argument 127 if (perms.length() != 9) in fromString() 130 if (isR(perms.charAt(0))) result.add(OWNER_READ); in fromString() [all …]
|
D | AclEntry.java | 68 private final Set<AclEntryPermission> perms; field in AclEntry 77 Set<AclEntryPermission> perms, in AclEntry() argument 82 this.perms = perms; in AclEntry() 101 private Set<AclEntryPermission> perms; field in AclEntry.Builder 106 Set<AclEntryPermission> perms, in Builder() argument 109 assert perms != null && flags != null; in Builder() 112 this.perms = perms; in Builder() 131 return new AclEntry(type, who, perms, flags); in build() 180 public Builder setPermissions(Set<AclEntryPermission> perms) { in setPermissions() argument 181 if (perms.isEmpty()) { in setPermissions() [all …]
|
D | PosixFileAttributeView.java | 176 void setPermissions(Set<PosixFilePermission> perms) throws IOException; in setPermissions() argument
|
/libcore/ojluni/src/main/java/java/security/ |
D | UnresolvedPermissionCollection.java | 57 private transient Map<String, List<UnresolvedPermission>> perms; field in UnresolvedPermissionCollection 64 perms = new HashMap<String, List<UnresolvedPermission>>(11); in UnresolvedPermissionCollection() 83 v = perms.get(up.getName()); in add() 86 perms.put(up.getName(), v); in add() 100 return perms.get(p.getClass().getName()); in getUnresolvedPermissions() 126 for (List<UnresolvedPermission> l : perms.values()) { in elements() 164 new Hashtable<>(perms.size()*2); in writeObject() 168 Set<Map.Entry<String, List<UnresolvedPermission>>> set = perms.entrySet(); in writeObject() 206 perms = new HashMap<String, List<UnresolvedPermission>>(permissions.size()*2); in readObject() 217 perms.put(e.getKey(), list); in readObject()
|
D | SecureClassLoader.java | 206 PermissionCollection perms = getPermissions(cs); in getProtectionDomain() local 207 pd = new ProtectionDomain(cs, perms, this, null); in getProtectionDomain()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | PosixFileAttributeViewTest.java | 56 Set<PosixFilePermission> perms = PosixFilePermissions.fromString(mode); in testPermissions() local 59 Files.setPosixFilePermissions(file, perms); in testPermissions() 61 if (!current.equals(perms)) { in testPermissions() 64 PosixFilePermissions.toString(perms)); in testPermissions() 68 Files.setAttribute(file, "posix:permissions", perms); in testPermissions() 70 if (!current.equals(perms)) { in testPermissions() 73 PosixFilePermissions.toString(perms)); in testPermissions() 367 Set<PosixFilePermission> perms = new HashSet<>(); in exceptionsTests() local 368 perms.add(null); in exceptionsTests() 369 view.setPermissions(perms); in exceptionsTests() [all …]
|
D | AclEntryEmptySetTest.java | 53 Set<AclEntryPermission> perms = new HashSet<>(); in main() local 54 AclEntry.newBuilder().setPermissions(perms); in main()
|
/libcore/ojluni/src/test/javax/xml/jaxp/transform/ |
D | XSLTExFuncTest.java | 236 private final Permissions perms; field in XSLTExFuncTest.SimplePolicy 239 perms = new Permissions(); in SimplePolicy() 241 perms.add(permission); in SimplePolicy() 247 return perms; in getPermissions() 252 return perms; in getPermissions() 257 return perms.implies(p); in implies()
|
D | XPathExFuncTest.java | 271 private final Permissions perms; field in XPathExFuncTest.SimplePolicy 274 perms = new Permissions(); in SimplePolicy() 276 perms.add(permission); in SimplePolicy() 282 return perms; in getPermissions() 287 return perms; in getPermissions() 292 return perms.implies(p); in implies()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileModeAttribute.java | 48 static int toUnixMode(Set<PosixFilePermission> perms) { in toUnixMode() argument 50 for (PosixFilePermission perm: perms) { in toUnixMode()
|
D | UnixFileAttributeViews.java | 257 public void setPermissions(Set<PosixFilePermission> perms) in setPermissions() argument 260 setMode(UnixFileModeAttribute.toUnixMode(perms)); in setPermissions()
|
D | UnixSecureDirectoryStream.java | 498 public void setPermissions(Set<PosixFilePermission> perms) in setPermissions() argument 511 fchmod(fd, UnixFileModeAttribute.toUnixMode(perms)); in setPermissions()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | JSR166TestCase.java | 1149 Permissions perms = new Permissions(); 1152 perms.add(permission); 1154 void addPermission(Permission perm) { perms.add(perm); } 1155 void clearPermissions() { perms = new Permissions(); } 1157 return perms; 1160 return perms; 1163 return perms.implies(p); 1168 for (Enumeration<Permission> e = perms.elements(); e.hasMoreElements();)
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | JSR166TestCase.java | 1256 Permissions perms = new Permissions(); 1259 perms.add(permission); 1261 void addPermission(Permission perm) { perms.add(perm); } 1262 void clearPermissions() { perms = new Permissions(); } 1264 return perms; 1267 return perms; 1270 return perms.implies(p); 1275 for (Enumeration<Permission> e = perms.elements(); e.hasMoreElements();)
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLClassLoader.java | 656 PermissionCollection perms = super.getPermissions(codesource); in getPermissions() local 716 perms.add(p); in getPermissions() 718 return perms; in getPermissions()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 3526 PermissionCollection perms = perm.newPermissionCollection(); 3527 perms.add(perm); 3529 new ProtectionDomain(null, perms)
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Files.java | 2038 Set<PosixFilePermission> perms) 2045 view.setPermissions(perms);
|