Additional top-level class in compilation unit: AllPermissionCollection.
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.
java.security.Permission
, java.security.AccessController
, java.security.Permissions
, java.security.PermissionCollection
, java.lang.SecurityManager
Modifier and Type | Field and Description |
---|---|
private static final long |
Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true ifobj is an AllPermission , false otherwise.the object we are testing for equality with this object. obj)Implements abstract java. Checks two |
public String | Returns: the actions.Implements abstract java. Returns the canonical string representation of the actions. |
public int | Returns: the hash code value for this objectImplements abstract java. Returns the hash code value for this object. |
public boolean | Returns: returnthe permission to check against. p)Implements abstract java. Checks if the specified permission is "implied" by this object. |
public PermissionCollection | Returns: a newPermissionCollection suitable for
storing AllPermission objects.Overrides java. Returns a new |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. |
AllPermission | back to summary |
---|---|
public AllPermission() Creates a new |
AllPermission | back to summary |
---|---|
public AllPermission(String name, String actions) Creates a new |
equals | back to summary |
---|---|
public boolean equals(Object obj) Implements abstract java. Checks two |
getActions | back to summary |
---|---|
public String getActions() Implements abstract java. Returns the canonical string representation of the actions.
|
hashCode | back to summary |
---|---|
public int hashCode() Implements abstract java. Returns the hash code value for this object.
|
implies | back to summary |
---|---|
public boolean implies(Permission p) Implements abstract java. Checks if the specified permission is "implied" by
this object. This method always returns
|
newPermissionCollection | back to summary |
---|---|
public PermissionCollection newPermissionCollection() Overrides java. Returns a new
|