Package org.apache.hadoop.conf
Class ConfigRedactor
java.lang.Object
org.apache.hadoop.conf.ConfigRedactor
Tool for redacting sensitive information when displaying config parameters.
Some config parameters contain sensitive information (for example, cloud storage keys). When these properties are displayed in plaintext, we should redactor their values as appropriate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGiven a key / value pair, decides whether or not to redact and returns either the original value or text indicating it has been redacted.Given a key / value pair, decides whether or not to redact and returns either the original value or text indicating it has been redacted.
-
Constructor Details
-
ConfigRedactor
-
-
Method Details
-
redact
Given a key / value pair, decides whether or not to redact and returns either the original value or text indicating it has been redacted.- Parameters:
key- param key.value- param value, will return if conditions permit.- Returns:
- Original value, or text indicating it has been redacted
-
redactXml
Given a key / value pair, decides whether or not to redact and returns either the original value or text indicating it has been redacted.- Parameters:
key- param key.value- param value, will return if conditions permit.- Returns:
- Original value, or text indicating it has been redacted
-