public class ConfigRedactor extends Object
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 and Description |
|---|
ConfigRedactor(Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
public ConfigRedactor(Configuration conf)
public String redact(String key, String value)
key - param key.value - param value, will return if conditions permit.public String redactXml(String key, String value)
key - param key.value - param value, will return if conditions permit.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.