/dalvik/libcore/luni/src/main/java/java/io/ |
H A D | FilePermissionCollection.java | 27 * particular permission is implied by it. 44 * Add a permission object to the permission collection. 46 * @param permission 49 * if {@code permission} is not an instance of 56 public void add(Permission permission) { argument 60 if (permission instanceof FilePermission) { 61 permissions.addElement(permission); 63 throw new IllegalArgumentException(permission.toString()); 70 * @return a permission enumeratio 87 implies(Permission permission) argument [all...] |
/dalvik/libcore/luni/src/main/java/java/net/ |
H A D | SocketPermissionCollection.java | 27 * a method to check whether or not a specific permission is implied by this 43 public void add(Permission permission) { argument 47 if (!(permission instanceof SocketPermission)) { 48 throw new IllegalArgumentException(permission.toString()); 50 permissions.addElement(permission); 60 * Returns whether this permission collection implies {@code permission}. 61 * Basically it tests whether {@code permission} is the subset of this 65 public boolean implies(Permission permission) { argument 66 if (!(permission instanceo [all...] |
/dalvik/libcore/security/src/main/java/java/security/ |
H A D | PermissionsHash.java | 43 * @param permission 44 * the permission to add to the collection. 46 public void add(Permission permission) { argument 47 perms.put(permission, permission); 60 * Indicates whether the argument permission is implied by the permissions 63 * @return boolean <code>true</code> if the argument permission is implied 66 * @param permission 67 * java.security.Permission the permission to check 69 public boolean implies(Permission permission) { argument [all...] |
H A D | AllPermission.java | 22 * {@code AllPermission} represents the permission to perform any operation. 24 * granting this permission is equivalent to disabling security. 106 * Indicates whether the given permission is implied by this permission. 110 * @param permission 111 * the permission to check. 114 public boolean implies(Permission permission) { argument
|
H A D | BasicPermissionCollection.java | 53 // true if this Collection contains a BasicPermission with '*' as its permission name 59 * Adds a permission to the collection. The first added permission must be a 66 public void add(Permission permission) { argument 70 if (permission == null) { 74 Class<? extends Permission> inClass = permission.getClass(); 78 permission)); 80 } else if( !(permission instanceof BasicPermission)) { 82 permission)); 88 permission)); 117 implies(Permission permission) argument [all...] |
H A D | Permission.java | 25 * {@link AccessController} and {@link AccessControlContext}. A permission 65 * this permission. The returned actions are in canonical form. For example: 75 * associated with this permission. 77 * @return the actions associated with this permission or an empty string if 78 * no actions are associated with this permission. 83 * Indicates whether the specified permission is implied by this permission. 84 * The {@link AccessController} uses this method to check whether permission 87 * @param permission 88 * the permission t 92 implies(Permission permission) argument [all...] |
H A D | PermissionCollection.java | 28 * permission is implied by any of the permissions present in this collection. 47 * @param permission 52 public abstract void add(Permission permission); argument 63 * Indicates whether the specified permission is implied by this {@code 66 * @param permission 67 * the permission to check. 68 * @return {@code true} if the given permission is implied by the 71 public abstract boolean implies(Permission permission); argument
|
H A D | AllPermissionCollection.java | 50 public void add(Permission permission) { argument 54 if (!(permission instanceof AllPermission)) { 56 permission)); 58 all = permission; 106 * Indicates whether the argument permission is implied by the receiver. 109 * @return boolean {@code true} if the argument permission is implied by the 111 * @param permission 112 * the permission to check. 115 public boolean implies(Permission permission) { argument
|
H A D | BasicPermission.java | 36 * java.io.* grants all permissions under the java.io permission hierarchy 54 * the name of the permission. 68 * the name of the permission. 134 * Returns the actions associated with this permission. Since {@code 145 * Indicates whether the specified permission is implied by this permission. 147 * @param permission 148 * the permission to check against this permission. 149 * @return {@code true} if the specified permission i 153 implies(Permission permission) argument [all...] |
H A D | Policy.java | 102 * the {@code ProtectionDomain} for which the permission should 104 * @param permission 110 public boolean implies(ProtectionDomain domain, Permission permission) { argument 121 if (total != null && total.implies(permission)) { 140 * not have permission to invoke this method. 225 * not have permission to invoke this method.
|
H A D | ProtectionDomain.java | 90 * performed, the policy and the provided permission collection are checked. 173 * Indicates whether the specified permission is implied by this {@code 178 * specified permission is only checked against the permission collection 184 * , the specified permission is checked against the policy and the 185 * permission collection provided in the constructor. 187 * @param permission 188 * the permission to check against the domain. 189 * @return {@code true} if the specified {@code permission} is implied by 192 public boolean implies(Permission permission) { argument [all...] |
H A D | UnresolvedPermissionCollection.java | 54 * Adds an unresolved permission to this {@code 57 * @param permission 58 * the permission to be added. 62 * if {@code permission} is {@code null} or not an {@code 65 public void add(Permission permission) { argument 69 if (permission == null 70 || permission.getClass() != UnresolvedPermission.class) { 72 permission)); 75 String klass = permission.getName(); 81 klassMates.add(permission); 99 implies(Permission permission) argument 107 hasUnresolved(Permission permission) argument [all...] |
H A D | Permissions.java | 40 * provide a dedicated {@code PermissionCollection}, a default permission 59 * PermissionCollection}. The {@code permission} is stored in its 62 * @param permission 68 * if {@code permission} is {@code null}. 70 public void add(Permission permission) { argument 75 if (permission == null) { 79 Class klass = permission.getClass(); 88 klassMates = permission.newPermissionCollection(); 96 klassMates.add(permission); 164 public boolean implies(Permission permission) { argument [all...] |
/dalvik/libcore/security/src/main/java/java/security/acl/ |
H A D | AclEntry.java | 69 * Adds the specified permission to this ACL entry. 71 * @param permission 72 * the permission to be added. 73 * @return {@code true} if the specified permission is added, {@code false} if the 74 * permission was already in this entry. 76 boolean addPermission(Permission permission); argument 79 * Removes the specified permission from this ACL entry. 81 * @param permission 82 * the permission to be removed. 83 * @return {@code true} if the permission i 86 removePermission(Permission permission) argument 95 checkPermission(Permission permission) argument [all...] |
H A D | Acl.java | 116 * <li>The two permission lists (<i>positive</i> and <i>negative</i>) of the 121 * specific permission is in both the positive and the negative list, it is 146 * permission. 153 * @param permission 154 * the permission to check for the principal. 155 * @return {@code true} if the principal is granted the permission, 159 boolean checkPermission(Principal principal, Permission permission); argument
|
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MyPermission.java | 49 public boolean implies(Permission permission) { argument
|
H A D | MyPermissionCollection.java | 35 public void add(Permission permission) {} argument 50 public boolean implies(Permission permission) { argument
|
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/acl/ |
H A D | PermissionImpl.java | 27 private String permission;
field in class:PermissionImpl 30 permission = s;
36 return permission.equals(permission1.toString());
43 return permission;
|
/dalvik/libcore/luni/src/main/java/java/util/ |
H A D | PropertyPermission.java | 31 * {@code PropertyPermission} objects represent a permission to access system 34 * A permission is one of the possible permission strings like "user.name" or 35 * "java.version". It's also possible to use a wildcard to define the permission 37 * permission for "user.home", "user.name", "user.dir", ... "*" defines the 38 * permission for all available properties. 40 * There are two possible permission action types: read and write. Possible 86 * If {@code o} is a permission that is not a {@code PropertyPermission}, 129 * Indicates whether the argument permission is implied by the receiver. 131 * @return boolean {@code true} if the argument permission i 137 implies(Permission permission) argument [all...] |
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | Permissions2Test.java | 96 + "of permission - called in add() test ", i, perm.length); 144 + "number of permission - called in element() test", i, 192 public void checkPermission(Permission permission) { argument
|
H A D | AccessController2Test.java | 288 public boolean implies(Permission permission) { argument
|
H A D | IdentityScopeTest.java | 49 public void checkPermission(Permission permission){ argument 50 if (denied!=null && denied.implies(permission)) throw new SecurityException(); 136 * check that if permission given - set/get works 137 * if permission is denied than SecurityException is thrown 170 // permission is denied
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/file/ |
H A D | FileURLConnection.java | 51 private FilePermission permission; field in class:FileURLConnection 190 * Returns the permission, in this case the subclass, FilePermission object 191 * which represents the permission necessary for this URLConnection to 194 * @return the permission required for this URLConnection. 197 * if an IO exception occurs while creating the permission. 201 if (permission == null) { 206 permission = new FilePermission(path, "read"); //$NON-NLS-1$ 208 return permission;
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
H A D | MutableSecurityManager.java | 48 void addPermission(Permission permission) { argument 49 enabled.add(permission); 64 public void checkPermission(Permission permission) argument 66 if (permission != null) { 67 if (denied != null && denied.implies(permission)){ 69 throw new SecurityException("Denied " + permission); 72 if (enabled.implies(permission)) { 77 super.checkPermission(permission); 81 public void checkPermission(Permission permission, Object context) argument 83 if (permission ! [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/net/ |
H A D | CookieHandlerTest.java | 215 public void checkPermission(Permission permission) { argument 216 if (permission instanceof NetPermission) { 217 if ("setCookieHandler".equals(permission.getName())) { 222 if (permission instanceof NetPermission) { 223 if ("getCookieHandler".equals(permission.getName())) { 228 if (permission instanceof RuntimePermission) { 229 if ("setSecurityManager".equals(permission.getName())) {
|