Class ScriptSandboxRuntime

java.lang.Object
com.xebialabs.xlrelease.script.security.ScriptSandboxRuntime

public final class ScriptSandboxRuntime extends Object
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 Details

    • SECURITY_MANAGER_UNAVAILABLE_FROM

      public static final int SECURITY_MANAGER_UNAVAILABLE_FROM
      First 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()