public static enum PermissiveWhitelist.Mode extends Enum<PermissiveWhitelist.Mode>
| Enum Constant and Description |
|---|
DISABLED |
ENABLED |
NO_SECURITY |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
act(Function<org.jenkinsci.plugins.scriptsecurity.sandbox.Whitelist,Boolean> check,
Supplier<org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException> reject) |
static PermissiveWhitelist.Mode |
getConfigured(String config) |
static PermissiveWhitelist.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissiveWhitelist.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissiveWhitelist.Mode DISABLED
public static final PermissiveWhitelist.Mode ENABLED
public static final PermissiveWhitelist.Mode NO_SECURITY
public static PermissiveWhitelist.Mode[] values()
for (PermissiveWhitelist.Mode c : PermissiveWhitelist.Mode.values()) System.out.println(c);
public static PermissiveWhitelist.Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract boolean act(Function<org.jenkinsci.plugins.scriptsecurity.sandbox.Whitelist,Boolean> check, Supplier<org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException> reject)
public static PermissiveWhitelist.Mode getConfigured(String config)
Copyright © 2016–2021. All rights reserved.