Class ScriptSandboxRuntime
java.lang.Object
com.xebialabs.xlrelease.script.security.ScriptSandboxRuntime
Central gate for Security-Manager-based script sandbox code paths.
The JVM version is determined automatically from the actual running JVM via
Runtime.version().feature().
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFirst JDK feature version where the Security Manager can no longer be enabled (JEP 486). -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanSM APIs are only used when the actual running JVM is older than 24.
-
Field Details
-
SECURITY_MANAGER_UNAVAILABLE_FROM
public static final int SECURITY_MANAGER_UNAVAILABLE_FROMFirst JDK feature version where the Security Manager can no longer be enabled (JEP 486).- See Also:
-
-
Method Details
-
isSecurityManagerAvailable
public static boolean isSecurityManagerAvailable()SM APIs are only used when the actual running JVM is older than 24. -
isSandboxActive
public static boolean isSandboxActive()
-