Package gg.xp.xivsupport.groovy
Class GroovyWhitelist
java.lang.Object
org.jenkinsci.plugins.scriptsecurity.sandbox.Whitelist
gg.xp.xivsupport.groovy.GroovyWhitelist
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
permitsConstructor
(@NotNull Constructor<?> constructor, @NotNull Object[] args) boolean
permitsFieldGet
(@NotNull Field field, @NotNull Object receiver) boolean
permitsFieldSet
(@NotNull Field field, @NotNull Object receiver, Object value) boolean
permitsMethod
(@NotNull Method method, @NotNull Object receiver, @NotNull Object[] args) Checks whether a given virtual method may be invoked.boolean
permitsStaticFieldGet
(@NotNull Field field) boolean
permitsStaticFieldSet
(@NotNull Field field, Object value) boolean
permitsStaticMethod
(@NotNull Method method, @NotNull Object[] args)
-
Constructor Details
-
GroovyWhitelist
public GroovyWhitelist()
-
-
Method Details
-
permitsMethod
public boolean permitsMethod(@NotNull @NotNull Method method, @NotNull @NotNull Object receiver, @NotNull @NotNull Object[] args) Description copied from class:Whitelist
Checks whether a given virtual method may be invoked.Note that
method
should not be implementing or overriding a method in a supertype; in such a case the caller must pass that supertype method instead. In other words, call site selection is the responsibility of the caller (such asStandardGroovySandbox
), not the whitelist.- Specified by:
permitsMethod
in classWhitelist
- Parameters:
method
- a method defined in the JVMreceiver
-this
, the receiver of the method callargs
- zero or more arguments- Returns:
- true to allow the method to be called, false to reject it
-
permitsConstructor
public boolean permitsConstructor(@NotNull @NotNull Constructor<?> constructor, @NotNull @NotNull Object[] args) - Specified by:
permitsConstructor
in classWhitelist
-
permitsStaticMethod
public boolean permitsStaticMethod(@NotNull @NotNull Method method, @NotNull @NotNull Object[] args) - Specified by:
permitsStaticMethod
in classWhitelist
-
permitsFieldGet
- Specified by:
permitsFieldGet
in classWhitelist
-
permitsFieldSet
public boolean permitsFieldSet(@NotNull @NotNull Field field, @NotNull @NotNull Object receiver, Object value) - Specified by:
permitsFieldSet
in classWhitelist
-
permitsStaticFieldGet
- Specified by:
permitsStaticFieldGet
in classWhitelist
-
permitsStaticFieldSet
- Specified by:
permitsStaticFieldSet
in classWhitelist
-