true is returned. Otherwise, delegates to the implies method of the currently active sub-policy to determine if the given permission is implied by the permissions for the specified protection domain.
@param domain protection domain in which to check implication
@param permission permission to test implication of
@return true if permission is implied by permissions ofgiven protection domain, false otherwise
true is returned. If not, delegates to the implies method of the underlying policy associated with the loader of the given class (the loader-specific policy if the class loader is null, the same as or a child of the loader specified in the constructor for this instance, or the default loader otherwise).
@param domain protection domain in which to check implication
@param permission permission to test implication of
@return true if permission is implied by permissions ofgiven protection domain, false otherwise
Subject is implied by this object.
@return true if the specified Subject is implied bythis object, or false otherwise.
More specifically, this method returns true if:
true if the specified permission is notnull and is implied by this object, false otherwise.
More specifically, this method first ensures that all of the following are true (and returns false if any of them are not):
implies checks each of the following, in order, and for each returns true if the stated condition is true:
implies returns false.
@param p the permission to check against.
@return true if the specified permission is implied by this object,false if not.
More specifically, this method returns true if:
http: http://*.sun.com/classes/ http://java.sun.com/classes/- http://java.sun.com/classes/foo.jarNote that if this CodeSource has a null location and a null certificate chain, then it implies every other CodeSource. @param codesource CodeSource to compare against. @return true if the specified codesource is implied by this codesource,false if not.
This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.
The implies method is used by the AccessController to determine whether or not a requested permission is implied by another permission that is known to be valid in the current execution context.
@param permission the permission to check against.
@return true if the specified permission is implied by this object,false if not.
For example, suppose there is a FilePermissionCollection in this Permissions object, and it contains one FilePermission that specifies "read" access for all files in all subdirectories of the "/tmp" directory, and another FilePermission that specifies "write" access for all files in the "/tmp/scratch/foo" directory. Then if the implies method is called with a permission specifying both "read" and "write" access to files in the "/tmp/scratch/foo" directory, true is returned.
Additionally, if this PermissionCollection contains the AllPermission, this method will always return true.
@param permission the Permission object to check. @return true if "permission" is implied by the permissions in thePermissionCollection it belongs to, false if not.
The set of permissions evaluated is a function of whether the ProtectionDomain was constructed with a static set of permissions or it was bound to a dynamically mapped set of permissions.
If the ProtectionDomain was constructed to a {@link #ProtectionDomain(CodeSource,PermissionCollection) statically bound} PermissionCollection then the permission willonly be checked against the PermissionCollection supplied at construction.
However, if the ProtectionDomain was constructed with the constructor variant which supports {@link #ProtectionDomain(CodeSource,PermissionCollection,ClassLoader,java.security.Principal[]) dynamically binding}permissions, then the permission will be checked against the combination of the PermissionCollection supplied at construction and the current Policy binding.
@param permission the Permission object to check. @return true if "permission" is implicit to this ProtectionDomain.
If none of the above are true, {@code implies} returns false. @param p the permission to check against. @return true if the specified permission is implied by this object,false if not.
If none of the above are true, {@code implies} returns false. @param p the permission to check against. @return true if the specified permission is implied by this object,false if not.
true if the given permission is a GrantPermission implied by this permission, or false otherwise. Implication is defined as follows: for a given GrantPermission g, let c(g) denote the set of all permissions contained within g or within arbitrarily nested GrantPermissions inside g, excluding nested GrantPermissions themselves. Then, a GrantPermission g1 is implied by another GrantPermission g2 if and only if each permission in c(g1) is implied by c(g2). Implication of contained java.security.UnresolvedPermissions is special-cased: an UnresolvedPermission p1 is taken to imply another UnresolvedPermission p2 if and only if the serialized representations of p1 and p2 are identical.
@param permission permission to check
@return true if given permission is implied by thispermission, false otherwise
This method returns true if:
That is, this current instance must be exactly equal to or a superset of the functionalty and/or resource access described by the given {@code Permission} argument. Yet another way of saying thiswould be:
If "permission1 implies permission2", i.e. permission1.implies(permission2) , then any Subject granted {@code permission1} would have ability greater than or equal to that defined by{@code permission2}.
@param p the permission to check for behavior/functionality comparison.
@return {@code true} if this current instance implies all the functionality and/or resource accessdescribed by the specified {@code Permission} argument, {@code false} otherwise.
More specifically, this method returns true if:
true if the specified permission is notnull and is implied by this object, false otherwise.
This method checks that the topic name of the target is implied by the topic name of this object. The list of {@code TopicPermission} actionsmust either match or allow for the list of the target object to imply the target {@code TopicPermission} action.
x/y/*,"publish" -> x/y/z,"publish" is true *,"subscribe" -> x/y,"subscribe" is true *,"publish" -> x/y,"subscribe" is false x/y,"publish" -> x/y/z,"publish" is false@param p The target permission to interrogate. @return {@code true} if the specified {@code TopicPermission} action isimplied by this object; {@code false} otherwise.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |