simple.http.load
Class LoaderPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
simple.http.load.LoaderPermission
- All Implemented Interfaces:
- java.io.Serializable, java.security.Guard
public final class LoaderPermission
- extends java.security.BasicPermission
The LoaderPermission
is used to provide access to
the functions of the LoaderManager
. This will
grant permission to use the methods provided the correct
actions strings are given. The permissions that can be granted
are the "load", "update", and "link" actions.
This is required because the LoaderManager
is
given to the Service
instances on creation. This
ensures that loaded code can be restricted from changing the
configuration of the LoaderManager
.
- Author:
- Niall Gallagher
- See Also:
- Serialized Form
Constructor Summary |
LoaderPermission(java.lang.String action)
Constructor fot 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 |
LoaderPermission
public LoaderPermission(java.lang.String action)
- Constructor fot the
LoaderPermission
requires
an action string. The actions that can be granted are the
"load", "update" and, "link" actions. This can be used
within security policy files as it follows the same naming
scheme as the BasicPermission
.
- Parameters:
action
- this is the action that is to be granted