Home
last modified time | relevance | path

Searched refs:perms (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/file/attribute/
DPosixFilePermissions.java73 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 …]
DAclEntry.java68 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 …]
DPosixFileAttributeView.java176 void setPermissions(Set<PosixFilePermission> perms) throws IOException; in setPermissions() argument
/libcore/ojluni/src/main/java/java/security/
DUnresolvedPermissionCollection.java57 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()
DSecureClassLoader.java206 PermissionCollection perms = getPermissions(cs); in getProtectionDomain() local
207 pd = new ProtectionDomain(cs, perms, this, null); in getProtectionDomain()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileAttributes.java218 HashSet<PosixFilePermission> perms = new HashSet<>(); in permissions() local
221 perms.add(PosixFilePermission.OWNER_READ); in permissions()
223 perms.add(PosixFilePermission.OWNER_WRITE); in permissions()
225 perms.add(PosixFilePermission.OWNER_EXECUTE); in permissions()
228 perms.add(PosixFilePermission.GROUP_READ); in permissions()
230 perms.add(PosixFilePermission.GROUP_WRITE); in permissions()
232 perms.add(PosixFilePermission.GROUP_EXECUTE); in permissions()
235 perms.add(PosixFilePermission.OTHERS_READ); in permissions()
237 perms.add(PosixFilePermission.OTHERS_WRITE); in permissions()
239 perms.add(PosixFilePermission.OTHERS_EXECUTE); in permissions()
[all …]
DUnixFileModeAttribute.java48 static int toUnixMode(Set<PosixFilePermission> perms) { in toUnixMode() argument
50 for (PosixFilePermission perm: perms) { in toUnixMode()
DUnixFileAttributeViews.java257 public void setPermissions(Set<PosixFilePermission> perms) in setPermissions() argument
260 setMode(UnixFileModeAttribute.toUnixMode(perms)); in setPermissions()
DUnixSecureDirectoryStream.java498 public void setPermissions(Set<PosixFilePermission> perms) in setPermissions() argument
511 fchmod(fd, UnixFileModeAttribute.toUnixMode(perms)); in setPermissions()
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java56 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 …]
DAclEntryEmptySetTest.java53 Set<AclEntryPermission> perms = new HashSet<>(); in main() local
54 AclEntry.newBuilder().setPermissions(perms); in main()
/libcore/ojluni/src/test/javax/xml/jaxp/transform/
DXSLTExFuncTest.java236 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()
DXPathExFuncTest.java271 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/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1149 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/
DJSR166TestCase.java1256 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/
DURLClassLoader.java656 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/
DCalendar.java3526 PermissionCollection perms = perm.newPermissionCollection();
3527 perms.add(perm);
3529 new ProtectionDomain(null, perms)
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java275 boolean[][] perms = new boolean[3][3]; in parseLine()
278 perms[i][j] = (permstring.charAt((i * 3) + j) != '-'); in parseLine()
284 file.setPermissions(perms); in parseLine()
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java2038 Set<PosixFilePermission> perms)
2045 view.setPermissions(perms);