public static final class RedactionUtils.RedactionContext extends Object
| Constructor and Description |
|---|
RedactionContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEquivalentName(String original,
String equivalent,
String redactionPrefix)
Add a name that needs to be mapped to the same redacted format as another one.
|
void |
addName(String name,
String redactionPrefix)
Add a name to be redacted.
|
Map<String,String> |
getRedactions()
Get a map of original to redacted names.
|
public void addName(String name, String redactionPrefix)
name - original nameredactionPrefix - prefix for the redacted namepublic void addEquivalentName(String original, String equivalent, String redactionPrefix)
original - original name already mapped (will be added automatically if missing)equivalent - another name that needs to be mapped to the same redacted nameredactionPrefix - prefix for the redacted nameCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.