Class LoggingPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
java.util.logging.LoggingPermission
- All Implemented Interfaces:
Serializable, Guard
@Deprecated(since="25",
forRemoval=true)
public final class LoggingPermission
extends BasicPermission
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources
as the Security Manager is no longer supported.
This class is for logging permissions. Currently there is only one
LoggingPermission named "control".
- Since:
- 1.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingPermission
(String name, String actions) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new LoggingPermission object. -
Method Summary
Methods declared in class BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
Methods declared in class Permission
checkGuard, getName, toString
-
Constructor Details
-
LoggingPermission
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new LoggingPermission object.- Parameters:
name
- Permission name. Must be "control".actions
- Must be either null or the empty string.- Throws:
NullPointerException
- ifname
isnull
.IllegalArgumentException
- ifname
is empty or if arguments are invalid.
-