public class ScanTextConfig extends Object
| Constructor and Description |
|---|
ScanTextConfig(List<UUID> detectionRuleUUIDs,
List<DetectionRule> detectionRules,
int contextBytes)
Create a scan configuration with the provided inline detection rules and detection rule UUIDs.
|
ScanTextConfig(List<UUID> detectionRuleUUIDs,
List<DetectionRule> detectionRules,
int contextBytes,
RedactionConfig defaultRedactionConfig)
Create a scan configuration with the provided inline detection rules and detection rule UUIDs.
|
| Modifier and Type | Method and Description |
|---|---|
static ScanTextConfig |
fromDetectionRules(List<DetectionRule> detectionRules,
int contextBytes)
Create a scan configuration with the provided detection rules.
|
static ScanTextConfig |
fromDetectionRuleUUIDs(List<UUID> detectionRuleUUIDs,
int contextBytes)
Create a scan configuration with the provided detection rules.
|
AlertConfig |
getAlertConfig()
Get the alert configuration that specifies where alerts should be delivered when findings are detected.
|
int |
getContextBytes()
Get the number of context bytes.
|
RedactionConfig |
getDefaultRedactionConfig()
Get the default redaction configuration to-be-applied to all detection rules, unless a more specific redaction
configuration is supplied at the detector level.
|
List<DetectionRule> |
getDetectionRules()
Get the detection rule UUIDs.
|
List<UUID> |
getDetectionRuleUUIDs()
Get the detection rule UUIDs.
|
void |
setAlertConfig(AlertConfig alertConfig)
Sets the alert configuration that specifies where alerts should be delivered when findings are detected.
|
void |
setContextBytes(int contextBytes)
Set the number of context bytes.
|
void |
setDefaultRedactionConfig(RedactionConfig defaultRedactionConfig)
Set the default redaction configuration to-be-applied to all detection rules, unless a more specific redaction
configuration is supplied at the detector level.
|
void |
setDetectionRules(List<DetectionRule> detectionRules)
Set the detection rules.
|
void |
setDetectionRuleUUIDs(List<UUID> detectionRuleUUIDs)
Set the detection rule UUIDs.
|
String |
toString() |
public ScanTextConfig(List<UUID> detectionRuleUUIDs, List<DetectionRule> detectionRules, int contextBytes)
detectionRuleUUIDs - a list of detection rules to use to scan content (maximum length 10)detectionRules - a list of detection rules to use to scan content (maximum length 10)contextBytes - the number of bytes of context (leading and trailing) to return with any matched findingspublic ScanTextConfig(List<UUID> detectionRuleUUIDs, List<DetectionRule> detectionRules, int contextBytes, RedactionConfig defaultRedactionConfig)
detectionRuleUUIDs - a list of detection rules to use to scan content (maximum length 10)detectionRules - a list of detection rules to use to scan content (maximum length 10)contextBytes - the number of bytes of context (leading and trailing) to return with any matched findingsdefaultRedactionConfig - the default redaction configuration to apply to all detection rulespublic static ScanTextConfig fromDetectionRuleUUIDs(List<UUID> detectionRuleUUIDs, int contextBytes)
detectionRuleUUIDs - a list of detection rules to use to scan content (maximum length 10)contextBytes - the number of bytes of context (leading and trailing) to return with any matched findingspublic static ScanTextConfig fromDetectionRules(List<DetectionRule> detectionRules, int contextBytes)
detectionRules - a list of detection rules to use to scan content (maximum length 10)contextBytes - the number of bytes of context (leading and trailing) to return with any matched findingspublic List<UUID> getDetectionRuleUUIDs()
public void setDetectionRuleUUIDs(List<UUID> detectionRuleUUIDs)
detectionRuleUUIDs - the detection rule UUIDs to use to scan the filepublic List<DetectionRule> getDetectionRules()
public void setDetectionRules(List<DetectionRule> detectionRules)
detectionRules - the detection rules to use to scan the filepublic int getContextBytes()
public void setContextBytes(int contextBytes)
contextBytes - the number of bytes of context (leading and trailing) to return with any matched findingspublic RedactionConfig getDefaultRedactionConfig()
public void setDefaultRedactionConfig(RedactionConfig defaultRedactionConfig)
defaultRedactionConfig - the default redaction configurationpublic AlertConfig getAlertConfig()
public void setAlertConfig(AlertConfig alertConfig)
alertConfig - the alert configurationCopyright © 2022. All rights reserved.