Package ai.nightfall.scan.model
Class Finding
java.lang.Object
ai.nightfall.scan.model.Finding
An object representing an occurrence of a configured detector (i.e. finding) in the provided data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the trailing context.Get the preceding context.Get the finding confidence.Get the detector.Get the finding.Get the location of the finding.Get the list of matched detection rules.Get the list of matched detection rule UUIDs.Returns the redacted finding.Get the location that the redacted finding would occupy in the original content if it were to replace the finding.toString()
-
Constructor Details
-
Finding
public Finding()
-
-
Method Details
-
getFinding
Get the finding.- Returns:
- the data that triggered a detector match
-
getRedactedFinding
Returns the redacted finding. This will only be non-empty if redaction configuration was provided as part of the request payload.- Returns:
- the redacted finding
-
getBeforeContext
Get the preceding context.- Returns:
- the data that immediately preceded the finding
-
getAfterContext
Get the trailing context.- Returns:
- the data that immediately succeeded the finding
-
getDetector
Get the detector.- Returns:
- the detector that triggered the match
-
getConfidence
Get the finding confidence.- Returns:
- the confidence that the data contained in
findingis an instance of the matched detector
-
getLocation
Get the location of the finding.- Returns:
- the location where the data was in the original content
-
getRedactedLocation
Get the location that the redacted finding would occupy in the original content if it were to replace the finding.- Returns:
- the location that the data occupies in its redacted form with regard to the original content
-
getMatchedDetectionRuleUUIDs
Get the list of matched detection rule UUIDs.- Returns:
- the list of detection rule UUIDs that contained a detector that triggered a match
-
getMatchedDetectionRules
Get the list of matched detection rules.- Returns:
- the list of inline detection rules that contained a detector that triggered a match
-
toString
-