public class RedactionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SOLR_REDACTION_SYSTEM_PATTERN_PROP |
Constructor and Description |
---|
RedactionUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getRedactString() |
static boolean |
isSystemPropertySensitive(String name)
Returns if the given system property should be redacted.
|
static String |
redactNames(Collection<String> names,
String redactionPrefix,
String data)
Replace actual names found in a string with meaningless randomized names.
|
static void |
setRedactSystemProperty(boolean redactSystemProperty) |
public static final String SOLR_REDACTION_SYSTEM_PATTERN_PROP
public static boolean isSystemPropertySensitive(String name)
name
- The system property that is being checked.public static String getRedactString()
public static void setRedactSystemProperty(boolean redactSystemProperty)
public static String redactNames(Collection<String> names, String redactionPrefix, String data)
names
- actual namesredactionPrefix
- prefix to use for redacted namesdata
- string to redactCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.