public final class Sanitizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<java.lang.Object> |
IS_SECRET_PREDICATE |
static java.util.List<java.lang.String> |
SECRET_NAMES
Names that, if they appear anywhere in an attribute/config/field
indicates that it may be private, so should not be logged etc.
|
Modifier and Type | Method and Description |
---|---|
<K> java.util.Map<K,java.lang.Object> |
apply(java.util.Map<K,?> input) |
static Sanitizer |
newInstance() |
static Sanitizer |
newInstance(com.google.common.base.Predicate<java.lang.Object> sanitizingNeededCheck) |
static java.util.Map<java.lang.String,java.lang.Object> |
sanitize(ConfigBag input) |
static <K> java.util.Map<K,java.lang.Object> |
sanitize(java.util.Map<K,?> input) |
public static final java.util.List<java.lang.String> SECRET_NAMES
public static final com.google.common.base.Predicate<java.lang.Object> IS_SECRET_PREDICATE
public static Sanitizer newInstance(com.google.common.base.Predicate<java.lang.Object> sanitizingNeededCheck)
public static Sanitizer newInstance()
public static java.util.Map<java.lang.String,java.lang.Object> sanitize(ConfigBag input)
public static <K> java.util.Map<K,java.lang.Object> sanitize(java.util.Map<K,?> input)
public <K> java.util.Map<K,java.lang.Object> apply(java.util.Map<K,?> input)