public static enum BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode extends Enum<BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode>
Enum Constant and Description |
---|
FAIL
Force the job to fail
|
REPLACE
Replace the dangerous variables by REDACTED
|
WARN
Just log the character and the name of the field
(to avoid disclosing passwords / credentials)
|
Modifier and Type | Field and Description |
---|---|
org.jvnet.localizer.Localizable |
label |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
actOnDangerousVariable(BatchSanitizerGlobalRule rule,
EnvVars envVars,
String variableName,
String variableValue,
String dangerousCharacter,
EnvVarsFilterRuleContext context) |
static BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode |
getDefault() |
static BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode FAIL
public static final BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode REPLACE
public static final BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode WARN
public static BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode[] values()
for (BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode c : BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode.values()) System.out.println(c);
public static BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode 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 static BatchSanitizerGlobalRule.EnvironmentSanitizerStandardMode getDefault()
public abstract boolean actOnDangerousVariable(BatchSanitizerGlobalRule rule, EnvVars envVars, String variableName, String variableValue, String dangerousCharacter, EnvVarsFilterRuleContext context) throws EnvVarsFilterException
EnvVarsFilterException
Copyright © 2016–2021. All rights reserved.