java.lang.Object
java.security.Permission
java.security.BasicPermission
java.lang.management.ManagementPermission
- All Implemented Interfaces:
Serializable
,Guard
This is the security permission that code running with a Java security
manager will be verified against when attempts are made to invoke methods in
the platform's management interface.
Instances of this type are normally created by security code.
- Since:
- 1.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionManagementPermission
(String name) Creates a new instance ofManagementPermission
with the given name.ManagementPermission
(String name, String actions) Creates a new instance ofManagementPermission
with the given name and permitted actions. -
Method Summary
Methods declared in class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
Methods declared in class java.security.Permission
checkGuard, getName, toString
-
Constructor Details
-
ManagementPermission
Creates a new instance ofManagementPermission
with the given name.- Parameters:
name
- the name of the permission. The only acceptable values are the strings "control" or "monitor".- Throws:
IllegalArgumentException
- ifname
is not one of the string values "control" or "monitor".NullPointerException
- ifname
isnull
.
-
ManagementPermission
Creates a new instance ofManagementPermission
with the given name and permitted actions.- Parameters:
name
- the name of the permission. The only acceptable values are the strings "control" or "monitor".actions
- this argument must either be an empty string ornull
.- Throws:
NullPointerException
- ifname
isnull
.
-