W3cubDocs

/OpenJDK 25

Class 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

Constructor Description
LoggingPermission(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 Permission

checkGuard, getName, toString

Methods declared in class Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Details

LoggingPermission

public LoggingPermission(String name, String actions) throws IllegalArgumentException
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 - if name is null.
IllegalArgumentException - if name is empty or if arguments are invalid.

© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/LoggingPermission.html