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.
|
public ConfigRedactor(Configuration conf)
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.