Class RejectEverythingInterceptor

java.lang.Object
org.kohsuke.groovy.sandbox.GroovyInterceptor
org.kohsuke.groovy.sandbox.impl.RejectEverythingInterceptor

public class RejectEverythingInterceptor extends GroovyInterceptor
An interceptor used by GroovyInterceptor.Invoker to reject any sandbox-transformed code that is executed when GroovyInterceptor.getApplicableInterceptors() is empty, under the assumption that there is no legitimate reason to run sandbox-transformed code outside of the sandbox.

Parameters of overridden methods with type Object are assumed to be unsafe and must be handled carefully to avoid security vulnerabilities. Safe operations include casting these objects to known-safe final classes such as String, or calling known-safe final methods such as Object.getClass().