APIdia Launch Partner
Top Description Constructors Methods
jdk.jfr

public final Class FlightRecorderPermission

extends BasicPermission
Class Inheritance
Annotations
@SuppressWarnings:serial
@Deprecated
since:25
forRemoval:true
Imports
java.util.Objects

Deprecated

for removal since 25.

This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

Permission for controlling access to Flight Recorder.
Since
9
See Also
java.security.BasicPermission, java.security.Permission, java.security.Permissions, java.security.PermissionCollection, java.lang.SecurityManager

Constructor Summary

AccessConstructor and Description
public
FlightRecorderPermission(String
the permission name, must be either "accessFlightRecorder" or "registerEvent", not null
name
)

Constructs a FlightRecorderPermission with the specified name.

Method Summary

Inherited from java.security.BasicPermission:
equalsgetActionshashCodeimpliesnewPermissionCollection

Constructor Detail

FlightRecorderPermissionback to summary
public FlightRecorderPermission(String name)

Constructs a FlightRecorderPermission with the specified name.

Parameters
name:String

the permission name, must be either "accessFlightRecorder" or "registerEvent", not null

Exceptions
IllegalArgumentException:
if name is empty or not valid