Top Description Fields Constructors Methods
javafx.util

public final Class FXPermission

extends BasicPermission
Class Inheritance
Annotations
@Deprecated
since:24
forRemoval:true
Imports
java.security.BasicPermission

Deprecated

for removal since 24.

This class was only useful in connection with the Security Manager, which is no longer supported. There is no replacement for this class.

This class is for JavaFX permissions. An FXPermission contains a target name but no actions list; you either have the named permission or you don't.

API Note

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

Since
9
See Also
java.security.BasicPermission, java.security.Permission, java.security.Permissions, java.security.PermissionCollection

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
FXPermission(String
the name of the FXPermission
name
)

Creates a new FXPermission with the specified name.

Method Summary

Inherited from java.security.BasicPermission:
equalsgetActionshashCodeimpliesnewPermissionCollection

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

Constructor Detail

FXPermissionback to summary
public FXPermission(String name)

Creates a new FXPermission with the specified name. The name is the symbolic name of the FXPermission, such as "accessClipboard", "createTransparentWindow ", etc. An asterisk may be used to indicate all JavaFX permissions.

Parameters
name:String

the name of the FXPermission

Exceptions
NullPointerException:
if name is null.
IllegalArgumentException:
if name is empty.