public class RedactionConfig extends Object
Four types of redaction are supported:
| Constructor and Description |
|---|
RedactionConfig(CryptoConfig cryptoConfig)
Build a redaction config with RSA encryption.
|
RedactionConfig(InfoTypeSubstitutionConfig infoTypeSubstitutionConfig)
Build a redaction config with info type substitution.
|
RedactionConfig(MaskConfig maskConfig)
Build a redaction config with masking.
|
RedactionConfig(SubstitutionConfig substitutionConfig)
Build a redaction config with substitution.
|
| Modifier and Type | Method and Description |
|---|---|
CryptoConfig |
getCryptoConfig()
Get the encryption configuration.
|
InfoTypeSubstitutionConfig |
getInfoTypeSubstitutionConfig()
Get the info type substitution configuration.
|
MaskConfig |
getMaskConfig()
Get the masking configuration.
|
SubstitutionConfig |
getSubstitutionConfig()
Get the substitution configuration.
|
boolean |
isRemoveFinding()
Returns whether the original finding should be omitted in responses from the API.
|
void |
setRemoveFinding(boolean removeFinding)
Sets whether the original finding should be omitted in responses from the API.
|
String |
toString() |
public RedactionConfig(MaskConfig maskConfig)
maskConfig - the masking configurationpublic RedactionConfig(InfoTypeSubstitutionConfig infoTypeSubstitutionConfig)
infoTypeSubstitutionConfig - the info type substitution configurationpublic RedactionConfig(SubstitutionConfig substitutionConfig)
substitutionConfig - the substitution configurationpublic RedactionConfig(CryptoConfig cryptoConfig)
cryptoConfig - the crypto configurationpublic MaskConfig getMaskConfig()
public InfoTypeSubstitutionConfig getInfoTypeSubstitutionConfig()
public SubstitutionConfig getSubstitutionConfig()
public CryptoConfig getCryptoConfig()
public boolean isRemoveFinding()
public void setRemoveFinding(boolean removeFinding)
removeFinding - true if the original finding should be omitted in responses from the API, false otherwiseCopyright © 2022. All rights reserved.