Additional top-level class in compilation unit: AllPermissionCollection.
AllPermission is a permission that implies all other permissions.
API Note
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
java.security.Permission , java.security.Permissions , java.security.PermissionCollection
| 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
| |