Package org.apache.solr.util
Class RedactionUtils
- java.lang.Object
- 
- org.apache.solr.util.RedactionUtils
 
- 
 public class RedactionUtils extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCOLL_REDACTION_PREFIXstatic StringNODE_REDACTION_PREFIXstatic StringSOLR_REDACTION_SYSTEM_PATTERN_PROP
 - 
Constructor SummaryConstructors Constructor Description RedactionUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetRedactString()static booleanisSystemPropertySensitive(String name)Returns if the given system property should be redacted.static StringredactNames(Map<String,String> redactions, String data)Replace actual names found in a string with redacted names.static voidsetRedactSystemProperty(boolean redactSystemProperty)
 
- 
- 
- 
Field Detail- 
SOLR_REDACTION_SYSTEM_PATTERN_PROPpublic static final String SOLR_REDACTION_SYSTEM_PATTERN_PROP - See Also:
- Constant Field Values
 
 - 
NODE_REDACTION_PREFIXpublic static final String NODE_REDACTION_PREFIX - See Also:
- Constant Field Values
 
 - 
COLL_REDACTION_PREFIXpublic static final String COLL_REDACTION_PREFIX - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isSystemPropertySensitivepublic static boolean isSystemPropertySensitive(String name) Returns if the given system property should be redacted.- Parameters:
- name- The system property that is being checked.
- Returns:
- true if property should be redacted.
 
 - 
getRedactStringpublic static String getRedactString() - Returns:
- redaction string to be used instead of the value.
 
 - 
setRedactSystemPropertypublic static void setRedactSystemProperty(boolean redactSystemProperty) 
 - 
redactNamespublic static String redactNames(Map<String,String> redactions, String data) Replace actual names found in a string with redacted names.- Parameters:
- redactions- a map of original to redacted names
- data- string to redact
- Returns:
- redacted string where all actual names have been replaced.
 
 
- 
 
-