public class ScanPolicy extends Object
| Constructor and Description |
|---|
ScanPolicy(AlertConfig alertConfig,
List<DetectionRule> detectionRules,
List<UUID> detectionRuleUUIDs)
Create a scan policy with the provided detection rules and detection rule UUIDs.
|
ScanPolicy(String webhookURL,
List<DetectionRule> detectionRules,
List<UUID> detectionRuleUUIDs)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static ScanPolicy |
fromDetectionRules(List<DetectionRule> detectionRules,
String webhookURL)
Create a scan policy with the provided detection rules.
|
static ScanPolicy |
fromDetectionRuleUUIDs(List<UUID> detectionRuleUUIDs,
String webhookURL)
Create a scan policy with the provided detection rules.
|
AlertConfig |
getAlertConfig()
Get the alert configuration that specifies where alerts should be delivered when findings are detected.
|
List<DetectionRule> |
getDetectionRules()
Get the list of detection rules.
|
List<UUID> |
getDetectionRuleUUIDs()
Get the detection rule UUIDs.
|
String |
getWebhookURL()
Deprecated.
|
void |
setAlertConfig(AlertConfig alertConfig)
Sets the alert configuration that specifies where alerts should be delivered when findings are detected.
|
void |
setDetectionRules(List<DetectionRule> detectionRules)
Set the detection rules.
|
void |
setDetectionRuleUUIDs(List<UUID> detectionRuleUUIDs)
Set the detection rule UUIDs.
|
void |
setWebhookURL(String webhookURL)
Deprecated.
|
@Deprecated public ScanPolicy(String webhookURL, List<DetectionRule> detectionRules, List<UUID> detectionRuleUUIDs)
webhookURL - the URL that Nightfall will use to deliver a webhook containing scan resultsdetectionRules - a list of detection rules to use to scan content. maximum length 10.detectionRuleUUIDs - a list of detection rule UUIDs to use to scan content. maximum length 10.public ScanPolicy(AlertConfig alertConfig, List<DetectionRule> detectionRules, List<UUID> detectionRuleUUIDs)
alertConfig - the alert configuration that Nightfall will use to deliver findings to external sources.detectionRules - a list of detection rules to use to scan content. maximum length 10.detectionRuleUUIDs - a list of detection rule UUIDs to use to scan content. maximum length 10.public static ScanPolicy fromDetectionRules(List<DetectionRule> detectionRules, String webhookURL)
detectionRules - a list of detection rules to use to scan content. maximum length 10.webhookURL - the URL that Nightfall will use to deliver a webhook containing scan resultspublic static ScanPolicy fromDetectionRuleUUIDs(List<UUID> detectionRuleUUIDs, String webhookURL)
detectionRuleUUIDs - a list of detection rule UUIDs to use to scan content. maximum length 10.webhookURL - the URL that Nightfall will use to deliver a webhook containing scan results@Deprecated public String getWebhookURL()
alertConfig object instead.@Deprecated public void setWebhookURL(String webhookURL)
webhookURL - the webhook URL that Nightfall should deliver results topublic List<DetectionRule> getDetectionRules()
public void setDetectionRules(List<DetectionRule> detectionRules)
detectionRules - a list of detection rules to scan againstpublic List<UUID> getDetectionRuleUUIDs()
public void setDetectionRuleUUIDs(List<UUID> detectionRuleUUIDs)
detectionRuleUUIDs - the list of detection rule UUIDs to scan againstpublic AlertConfig getAlertConfig()
public void setAlertConfig(AlertConfig alertConfig)
alertConfig - the alert configurationCopyright © 2022. All rights reserved.