Class ManagementPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
java.lang.management.ManagementPermission
- All Implemented Interfaces:
Serializable, Guard
@Deprecated(forRemoval=true,
since="25")
public final class ManagementPermission
extends BasicPermission
Deprecated, for removal: This API element is subject to removal in a future version.
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) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance ofManagementPermissionwith the given name.ManagementPermission(String name, String actions) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance ofManagementPermissionwith the given name and permitted actions. -
Method Summary
Methods declared in class BasicPermission
equals, getActions, hashCode, implies, newPermissionCollectionMethods declared in class Permission
checkGuard, getName, toString
-
Constructor Details
-
ManagementPermission
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance ofManagementPermissionwith the given name.- Parameters:
name- the name of the permission. The only acceptable values are the strings "control" or "monitor".- Throws:
IllegalArgumentException- ifnameis not one of the string values "control" or "monitor".NullPointerException- ifnameisnull.
-
ManagementPermission
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance ofManagementPermissionwith 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- ifnameisnull.
-