Class ConfigRedactor

java.lang.Object
org.apache.hadoop.conf.ConfigRedactor

public class ConfigRedactor extends Object
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 Details

  • Method Details

    • redact

      public String redact(String key, String value)
      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

      public String redactXml(String key, String value)
      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