public class RedactionUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RedactionUtils.RedactionContext
A helper class to build unique mappings from original to redacted names.
|
Modifier and Type | Field and Description |
---|---|
static String |
COLL_REDACTION_PREFIX |
static String |
NODE_REDACTION_PREFIX |
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(Map<String,String> redactions,
String data)
Replace actual names found in a string with redacted names.
|
static void |
setRedactSystemProperty(boolean redactSystemProperty) |
public static final String SOLR_REDACTION_SYSTEM_PATTERN_PROP
public static final String NODE_REDACTION_PREFIX
public static final String COLL_REDACTION_PREFIX
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(Map<String,String> redactions, String data)
redactions
- a map of original to redacted namesdata
- string to redactCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.