Class FXPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
javafx.util.FXPermission
- All Implemented Interfaces:
Serializable,Guard
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:
-
Constructor Summary
ConstructorsConstructorDescriptionFXPermission(String name) Creates a newFXPermissionwith the specified name. -
Method Summary
Methods declared in class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollectionMethods declared in class java.security.Permission
checkGuard, getName, toString
-
Constructor Details
-
FXPermission
Creates a newFXPermissionwith the specified name. The name is the symbolic name of theFXPermission, such as "accessClipboard", "createTransparentWindow ", etc. An asterisk may be used to indicate all JavaFX permissions.- Parameters:
name- the name of the FXPermission- Throws:
NullPointerException- ifnameisnull.IllegalArgumentException- ifnameis empty.
-