Searched refs:permission (Results 1 - 25 of 26) sorted by relevance

12

/libcore/ojluni/src/main/java/java/security/
H A DPermissionCollection.java36 public abstract void add(Permission permission); argument
38 public abstract boolean implies(Permission permission); argument
H A DPermissions.java39 public void add(Permission permission) { } argument
41 public boolean implies(Permission permission) { return true; } argument
H A DPermission.java38 public abstract boolean implies(Permission permission); argument
H A DPolicySpi.java52 * @param permission check whether this permission is granted to the
55 * @return boolean true if the permission is granted to the domain.
58 (ProtectionDomain domain, Permission permission);
57 engineImplies(ProtectionDomain domain, Permission permission) argument
H A DProtectionDomain.java51 public boolean implies(Permission permission) { return true; } argument
H A DPolicy.java92 public boolean implies(ProtectionDomain domain, Permission permission) { argument
106 @Override public void add(Permission permission) { argument
109 @Override public boolean implies(Permission permission) { argument
H A DUnresolvedPermissionCollection.java53 * Key is permission type, value is a list of the UnresolvedPermissions
68 * Adds a permission to this UnresolvedPermissionCollection.
69 * The key for the hash is the unresolved permission's type (class) name.
71 * @param permission the Permission object to add.
74 public void add(Permission permission) argument
76 if (! (permission instanceof UnresolvedPermission))
77 throw new IllegalArgumentException("invalid permission: "+
78 permission);
79 UnresolvedPermission up = (UnresolvedPermission) permission;
108 public boolean implies(Permission permission) argument
[all...]
/libcore/ojluni/src/main/java/java/security/acl/
H A DAclEntry.java83 * principal (e.g., a user or a group) will be denied the permission set
102 * Adds the specified permission to this ACL entry. Note: An entry can
105 * @param permission the permission to be associated with
108 * @return true if the permission was added, false if the
109 * permission was already part of this entry's permission set.
111 public boolean addPermission(Permission permission); argument
114 * Removes the specified permission from this ACL entry.
116 * @param permission th
121 removePermission(Permission permission) argument
132 checkPermission(Permission permission) argument
[all...]
H A DAcl.java54 * principal is considered to have a null (empty) permission set.
57 * particular permission, and a negative entry that denies the
58 * principal the same permission, the result is as though the
59 * permission was never granted or denied.
167 * specified principal, an empty permission set is returned.
169 * <li>Otherwise, the principal's group permission sets are determined.
172 * The group positive permission set is the union of all
174 * The group negative permission set is the union of all
176 * If there is a specific permission that occurs in both
177 * the positive permission se
232 checkPermission(Principal principal, Permission permission) argument
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DCryptoPermissions.java49 public void add(Permission permission) { } argument
51 public boolean implies(Permission permission) { return true; } argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMyBasicPermission.java28 @Override public boolean implies(Permission permission) { return true; } argument
/libcore/luni/src/test/java/libcore/java/security/
H A DAccessControllerTest.java32 * passed through without permission enforcement.
37 final Permission permission = new RuntimePermission("do stuff");
55 AccessController.getContext().checkPermission(permission);
63 AccessController.getContext().checkPermission(permission);
/libcore/ojluni/src/main/native/
H A DFileSystemPreferences.c45 jclass thisclass, jstring java_fname, jint permission) {
48 result = chmod(fname, permission);
68 jclass thisclass, jstring java_fname, jint permission, jboolean shared) {
89 fd = open(fname, O_WRONLY|O_CREAT, permission);
44 Java_java_util_prefs_FileSystemPreferences_chmod(JNIEnv *env, jclass thisclass, jstring java_fname, jint permission) argument
67 Java_java_util_prefs_FileSystemPreferences_lockFile0(JNIEnv *env, jclass thisclass, jstring java_fname, jint permission, jboolean shared) argument
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DIdentityScopeTest.java44 public void checkPermission(Permission permission){ argument
45 if (denied!=null && denied.implies(permission)) throw new SecurityException();
97 * check that if permission given - set/get works
98 * if permission is denied than SecurityException is thrown
H A DSignerTest.java51 public void checkPermission(Permission permission){ argument
52 if (denied!=null && denied.implies(permission)) throw new SecurityException();
H A DProviderTest.java640 public void checkPermission(Permission permission) { argument
641 if (permission instanceof SecurityPermission) {
642 if (permissionName.equals(permission.getName())) {
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DFileURLConnection.java216 Permission permission; field in class:FileURLConnection
218 /* since getOutputStream isn't supported, only read permission is
222 if (permission == null) {
225 permission = new FilePermission(decodedPath, "read");
227 permission = new FilePermission(
231 return permission;
/libcore/ojluni/src/main/java/java/net/
H A DHttpURLConnection.java787 * permission necessary to connect to the destination host and port.
790 * the permission.
793 * permission necessary to connect to the destination
800 Permission permission = new SocketPermission(host, "connect");
801 return permission;
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
H A DFtpURLConnection.java94 Permission permission; field in class:FtpURLConnection
577 if (permission == null) {
581 permission = new SocketPermission(urlhost, "connect");
583 return permission;
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DJarURLConnection.java59 /* the permission to get this JAR file. This is the actual, ultimate,
60 * permission, returned by the jar file factory.
62 private Permission permission; field in class:JarURLConnection
124 /* we also ask the factory the permission that was required
125 * to get the jarFile, and set it as our permission.
/libcore/luni/src/test/java/tests/java/security/
H A DIdentityTest.java49 public void checkPermission(Permission permission){ argument
50 if (denied!=null && denied.implies(permission)) throw new SecurityException();
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLTest.java589 throw new SecurityException("permission is not allowed");
593 public void checkPermission(Permission permission) { argument
594 if ("setSecurityManager".equals(permission.getName())) {
597 super.checkPermission(permission);
/libcore/ojluni/src/main/java/java/util/prefs/
H A DFileSystemPreferences.java212 * Unix user write/read permission
941 lockFile0(String fileName, int permission, boolean shared); argument
953 private static native int chmod(String fileName, int permission); argument
/libcore/jsr166-tests/src/test/java/jsr166/
H A DJSR166TestCase.java1151 for (Permission permission : permissions)
1152 perms.add(permission);
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java1972 public static final int permission = 0; field in class:R

Completed in 742 milliseconds

12