public class POSIXPermission extends RealtimePermission
Signal and
RealtimeSignal. The following table describes the actions for
checking the use of signals. A signal name or * can be given as the
name.
| Action Name | Description | Risks of grant |
|---|---|---|
| control | Starts or stops this signal. | Scheduling Risk |
| handle | Adds a handle to the given signal. | Load Risk |
| override | Removes a handler that belongs to another scheduling group. | Interference Risk |
| system | Changes systemwide signaling behavior. | Scheduling and Load Risk |
| send | Sends a given signal. | External Risk |
| system | Changes systemwide signaling behavior. | Scheduling and Load Risk |
* is allowed for both signal and action.
The risk classes are defined in RealtimePermission.| Constructor and Description |
|---|
POSIXPermission(java.lang.String actions)
Creates a new
POSIXPermission object for a given action,
i.e., the symbolic name of an action. |
POSIXPermission(java.lang.String name,
java.lang.String actions)
Creates a new
POSIXPermission object for a given action,
i.e., the symbolic name of an action. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
implies(java.security.Permission permission)
Checks if the given permission's actions are "implied by" this
object's actions.
|
equals, getActions, hashCode, setHashCodepublic POSIXPermission(java.lang.String name,
java.lang.String actions)
POSIXPermission object for a given action,
i.e., the symbolic name of an action. The name string
specifies for which POSIX signal the action applies.name - Specifies the domain for the action, or *
for no limit on the permission.actions - The names of the actions to allow, or *
for all actions.java.lang.NullPointerException - when actions is null.StaticIllegalArgumentException - when name or
action is empty.public POSIXPermission(java.lang.String actions)
POSIXPermission 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 actions is null.StaticIllegalArgumentException - when actions is empty.public boolean implies(java.security.Permission permission)
RealtimePermissionimplies in class RealtimePermissionpermission - is the permission to check.true when yes and false otherwise.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.