Package ai.nightfall.scan.model
Class ScanTextResponse
java.lang.Object
ai.nightfall.scan.model.ScanTextResponse
The response object returned by a text scan request. Each index
i in the field findings
corresponds one-to-one with the input request payload, so all findings stored in a given sub-list
refer to matches that occurred in the ith index of the request payload.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the findings.Return the original request content with the configured redactions applied.toString()
-
Constructor Details
-
ScanTextResponse
public ScanTextResponse()
-
-
Method Details
-
getFindings
Get the findings.- Returns:
- the findings
-
getRedactedPayload
Return the original request content with the configured redactions applied. If redaction was not applied for a given input string, the string at a given index in the array will be empty.- Returns:
- the original content with the configured redactions applied
-
toString
-