Modifier and Type | Method and Description |
---|---|
static Object |
GroovySandbox.run(groovy.lang.Script script,
Whitelist whitelist)
Runs a script in the sandbox.
|
static void |
GroovySandbox.runInSandbox(Runnable r,
Whitelist whitelist)
Runs a block in the sandbox.
|
static void |
GroovySandbox.runInSandbox(groovy.lang.Script script,
Whitelist whitelist)
Deprecated.
Use
GroovySandbox.run(groovy.lang.Script, org.jenkinsci.plugins.scriptsecurity.sandbox.Whitelist) to ensure that methods defined inside the script do not need to be whitelisted. |
Modifier and Type | Method and Description |
---|---|
static RejectedAccessException |
StaticWhitelist.rejectField(Field f) |
static RejectedAccessException |
StaticWhitelist.rejectMethod(Method m) |
static RejectedAccessException |
StaticWhitelist.rejectMethod(Method m,
String info) |
static RejectedAccessException |
StaticWhitelist.rejectNew(Constructor<?> c) |
static RejectedAccessException |
StaticWhitelist.rejectStaticField(Field f) |
static RejectedAccessException |
StaticWhitelist.rejectStaticMethod(Method m) |
Modifier and Type | Method and Description |
---|---|
RejectedAccessException |
ScriptApproval.accessRejected(RejectedAccessException x,
ApprovalContext context)
To be called when a sandbox rejects access for a script not using manual approval.
|
Modifier and Type | Method and Description |
---|---|
RejectedAccessException |
ScriptApproval.accessRejected(RejectedAccessException x,
ApprovalContext context)
To be called when a sandbox rejects access for a script not using manual approval.
|
Copyright © 2016. All rights reserved.