public class ImmortalMemoryPermission extends RealtimePermission
| Action Name | Description | Risks of grant |
|---|---|---|
| allocate | Allows the creation of an object in Immortal without entering it. | Can cause a Memory Leak Risk |
*, or no target, allows access to primordial
memory area.
The risk classes are defined in RealtimePermission.| Constructor and Description |
|---|
ImmortalMemoryPermission(java.lang.String actions)
Creates a new
ImmortalMemoryPermission object for a given action,
i.e., the symbolic name of an action. |
ImmortalMemoryPermission(java.lang.String target,
java.lang.String actions)
Creates a new
ImmortalMemoryPermission object for a given action,
i.e., the symbolic name of an action. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Compare two Permission objects for equality.
|
java.lang.String |
getActions()
Obtain the actions as a String in canonical form.
|
int |
hashCode()
Obtain the hash code value for this object.
|
boolean |
implies(java.security.Permission permission)
Checks if the given permission's actions are "implied by" this
object's actions.
|
public ImmortalMemoryPermission(java.lang.String actions)
ImmortalMemoryPermission object for a given action,
i.e., the symbolic name of an action.actions - The names of the actions to allow, or *
for all actions.java.lang.NullPointerException - when action is null.StaticIllegalArgumentException - when action is empty.public ImmortalMemoryPermission(java.lang.String target,
java.lang.String actions)
ImmortalMemoryPermission object for a given action,
i.e., the symbolic name of an action.target - The names of the memory area class for the action, or
* for all memory areas.actions - The names of the actions to allow, or *
for all actions.java.lang.NullPointerException - when action is null.StaticIllegalArgumentException - when action is empty.public boolean equals(java.lang.Object other)
RealtimePermissionequals in class RealtimePermissionother - is the object with which to compare.true when yes and false otherwise.public java.lang.String getActions()
RealtimePermissiongetActions in class RealtimePermissionpublic int hashCode()
RealtimePermissionhashCode in class RealtimePermissionpublic boolean implies(java.security.Permission permission)
RealtimePermissionimplies in class RealtimePermissionpermission - is the permission to check.true when yes and false otherwise.