- java.lang.Object
-
- java.security.Permission
-
- java.security.BasicPermission
-
- jdk.jfr.FlightRecorderPermission
-
- All Implemented Interfaces:
Serializable
,Guard
public final class FlightRecorderPermission extends BasicPermission
Permission for controlling access to Flight Recorder.The following table provides a summary description of what the permission allows, and discusses the risks of granting code the permission.
Permission Target Name What the Permission Allows Risks of Allowing this Permission accessFlightRecorder Ability to create a Flight Recorder instance, register callbacks to monitor Flight Recorder's life cycle and control an already existing instance of Flight Recorder, which can record and dump runtime information, such as stack traces, class names and data in user defined events. A malicious user may be able to extract sensitive information stored in events and interrupt Flight Recorder by installing listeners or hooks that never finishes. registerEvent Ability to register events, write data to the Flight Recorder buffers and execute code in a callback function for periodic events. A malicious user may be able to write sensitive information to Flight Recorder buffers. Programmers do not normally create
FlightRecorderPermission
objects directly. Instead they are created by the security policy code based on reading the security policy file.- Since:
- 9
- See Also:
BasicPermission
,Permission
,Permissions
,PermissionCollection
,SecurityManager
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlightRecorderPermission(String name)
Constructs aFlightRecorderPermission
with the specified name.
-
Method Summary
-
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
-
-
-
Constructor Detail
-
FlightRecorderPermission
public FlightRecorderPermission(String name)
Constructs aFlightRecorderPermission
with the specified name.- Parameters:
name
- permission name, must be either"accessFlightRecorder"
or"registerEvent"
, notnull
- Throws:
IllegalArgumentException
- ifname
is empty or invalid
-
-