The AllPermission is a permission that implies all other permissions.
The AllPermission is a permission that implies all other permissions.
Note: Granting AllPermission should be done with extreme care,
as it implies all other permissions. Thus, it grants code the ability
to run with security
disabled. Extreme caution should be taken before granting such
a permission to code. This permission should be used only during testing,
or in extremely rare cases where an application or applet is
completely trusted and adding the necessary permissions to the policy
is prohibitively cumbersome.
public AllPermission
(String name, String actions)
Creates a new AllPermission object.
Creates a new AllPermission object. This constructor exists for use by the Policy object to instantiate new Permission objects.
Parameters: - name - ignored
- actions - ignored.
Implements the guard interface for a permission. The SecurityManager.checkPermission method is called, passing this permission object as the permission to check. Returns silently if access is granted. Otherwise, throws a SecurityException.
Parameters: - object - the object being guarded (currently ignored).
Throws: - SecurityException - if a security manager exists and its
checkPermission method doesn't allow access.
See Also:Guard,
GuardedObject,
SecurityManager.checkPermission(java.security.Permission),
Checks two AllPermission objects for equality. Two AllPermission objects are always equal.
Returns:
true if obj is an AllPermission, false otherwise.
Parameters: - obj - the object we are testing for equality with this object.
Returns the name of this Permission. For example, in the case of a java.io.FilePermission, the name will be a pathname.
Returns:
the name of this Permission.
Checks if the specified permission is "implied" by
this object.
Checks if the specified permission is "implied" by this object. This method always returns true.
Returns:
return
Parameters: - p - the permission to check against.
Returns a string describing this Permission. The convention is to specify the class name, the permission name, and the actions in the following format: '("ClassName" "name" "actions")'.
Returns:
information about this Permission.