simple.util.process
Class ProcessPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
simple.util.process.ProcessPermission
- All Implemented Interfaces:
- java.io.Serializable, java.security.Guard
public final class ProcessPermission
- extends java.security.BasicPermission
The ProcessPermission
is used to provide access
to the ProcessQueue
. This will grant permission
to use the getInstance
method, which in effect
will provide access to all the methods of the process queue.
The permission that is required is the "execute" permission.
This is required because the ProcessQueue
is a
singleton instance, so if any foreign code is loaded it must
have permissions before using execute
on the
ProcessQueue
, which can cause deadlock.
- Author:
- Niall Gallagher
- See Also:
- Serialized Form
Constructor Summary |
ProcessPermission(java.lang.String action)
Constructor for the LoaderPermission requires
an action string. |
Methods inherited from class java.security.BasicPermission |
equals, getActions, hashCode, implies, newPermissionCollection |
Methods inherited from class java.security.Permission |
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ProcessPermission
public ProcessPermission(java.lang.String action)
- Constructor for the
LoaderPermission
requires
an action string. The action that can be granted by this
is the "execute" action. This can be used within security
policy files as it follows the same naming scheme as the
BasicPermission
object.
- Parameters:
action
- this is the action that is to be granted