public final class ManagementPermission extends BasicPermission
Represents the permission to view or modify the data
which forms part of the system management interfaces.
Calls to methods of the system management beans,
provided by the ManagementFactory
, may perform
checks against the current SecurityManager
(if any) before allowing the operation to proceed.
Instances of this object are supplied to the
SecurityManager
in order to perform
these checks. It is not normal for instances of this
class to be created outside the use of the
SecurityManager
.
This object can represent two types of management permission:
Constructor and Description |
---|
ManagementPermission(String name)
Constructs a new
ManagementPermission
for one of the two permission targets, "monitor"
and "control". |
ManagementPermission(String name,
String actions)
Constructs a new
ManagementPermission
for one of the two permission targets, "monitor"
and "control". |
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public ManagementPermission(String name)
ManagementPermission
for one of the two permission targets, "monitor"
and "control".name
- the name of the permission this instance
should represent; either "monitor" or
"control".IllegalArgumentException
- if the name is not
either "monitor"
or "control".public ManagementPermission(String name, String actions)
ManagementPermission
for one of the two permission targets, "monitor"
and "control". Actions are not supported, so
this value should be either null
or the empty string.name
- the name of the permission this instance
should represent; either "monitor" or
"control".actions
- either null
or the
empty string.IllegalArgumentException
- if the name is not
either "monitor"
or "control", or
a value for actions
is specified.