APIdia Launch Partner
Top Description Constructors Methods
com.sun.javafx

public Class SecurityUtil

extends Object
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException, .Method

Utility class to check for the presence of a security manager.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
checkSecurityManager()

Check for the presence of a security manager (from an older JDK) and throw UnsupportedOperationException if enabled.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SecurityUtilback to summary
private SecurityUtil()

Method Detail

checkSecurityManagerback to summary
public static void checkSecurityManager()

Check for the presence of a security manager (from an older JDK) and throw UnsupportedOperationException if enabled. Use reflection to avoid a dependency on an API that is deprecated for removal. This method does nothing if the security manager is not enabled or if System::getSecurityManager cannot be invoked.

Exceptions
UnsupportedOperationException:
if the security manager is enabled