- getAdditionalData() - Method in class ai.nightfall.scan.model.NightfallErrorResponse
-
Get supplemental error data.
- getAddress() - Method in class ai.nightfall.scan.model.alert.EmailAlert
-
Returns the email address to which alerts should be delivered.
- getAddress() - Method in class ai.nightfall.scan.model.alert.WebhookAlert
-
Returns the URL address to which alerts should be delivered.
- getAfterContext() - Method in class ai.nightfall.scan.model.Finding
-
Get the trailing context.
- getAlertConfig() - Method in class ai.nightfall.scan.model.ScanPolicy
-
Get the alert configuration that specifies where alerts should be delivered when findings are detected.
- getAlertConfig() - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Get the alert configuration that specifies where alerts should be delivered when findings are detected.
- getBeforeContext() - Method in class ai.nightfall.scan.model.Finding
-
Get the preceding context.
- getByteRange() - Method in class ai.nightfall.scan.model.Location
-
Get the finding's byte range.
- getCharsToIgnore() - Method in class ai.nightfall.scan.model.redaction.MaskConfig
-
Returns the characters to ignore during masking.
- getChunkSize() - Method in class ai.nightfall.scan.model.FileUpload
-
Get the chunk size.
- getCode() - Method in class ai.nightfall.scan.model.NightfallErrorResponse
-
Get the error code.
- getCodepointRange() - Method in class ai.nightfall.scan.model.Location
-
Get the finding's codepoint range.
- getColumnRange() - Method in class ai.nightfall.scan.model.Location
-
Get the finding's column range.
- getCommitAuthor() - Method in class ai.nightfall.scan.model.Location
-
Get the finding's commit author.
- getCommitHash() - Method in class ai.nightfall.scan.model.Location
-
Get the finding's commit hash.
- getConfidence() - Method in class ai.nightfall.scan.model.Finding
-
Get the finding confidence.
- getConfidenceAdjustment() - Method in class ai.nightfall.scan.model.ContextRule
-
Return the confidence adjustment.
- getConfig() - Method in class ai.nightfall.scan.model.ScanTextRequest
-
- getContent() - Method in class ai.nightfall.scan.model.UploadFileChunkRequest
-
Get the request payload.
- getContextBytes() - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Get the number of context bytes.
- getContextRules() - Method in class ai.nightfall.scan.model.Detector
-
Get the context rules.
- getCryptoConfig() - Method in class ai.nightfall.scan.model.redaction.RedactionConfig
-
Get the encryption configuration.
- getDefaultRedactionConfig() - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Get the default redaction configuration to-be-applied to all detection rules, unless a more specific redaction
configuration is supplied at the detector level.
- getDescription() - Method in class ai.nightfall.scan.model.NightfallErrorResponse
-
Get the error description.
- getDetectionRules() - Method in class ai.nightfall.scan.model.ScanPolicy
-
Get the list of detection rules.
- getDetectionRules() - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Get the detection rule UUIDs.
- getDetectionRuleUUIDs() - Method in class ai.nightfall.scan.model.ScanPolicy
-
Get the detection rule UUIDs.
- getDetectionRuleUUIDs() - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Get the detection rule UUIDs.
- getDetector() - Method in class ai.nightfall.scan.model.Finding
-
Get the detector.
- getDetectors() - Method in class ai.nightfall.scan.model.DetectionRule
-
Get the list of detectors.
- getDetectorType() - Method in class ai.nightfall.scan.model.Detector
-
Get the detector type.
- getDetectorUUID() - Method in class ai.nightfall.scan.model.Detector
-
Get the detector UUID.
- getDisplayName() - Method in class ai.nightfall.scan.model.Detector
-
Get the display name.
- getEmailAlert() - Method in class ai.nightfall.scan.model.alert.AlertConfig
-
Returns the email alert destination.
- getEnd() - Method in class ai.nightfall.scan.model.Location.Range
-
Get the end of the range.
- getError() - Method in exception ai.nightfall.scan.model.NightfallAPIException
-
Get the error object returned by Nightfall.
- getErrors() - Method in class ai.nightfall.scan.model.FileScanWebhookNotification
-
Get the list of errors that occurred while processing the request.
- getExclusionRules() - Method in class ai.nightfall.scan.model.Detector
-
Get the exclusion rules.
- getExclusionType() - Method in class ai.nightfall.scan.model.ExclusionRule
-
Get the exclusion type.
- getFileID() - Method in class ai.nightfall.scan.model.FileUpload
-
Get the file ID.
- getFileOffset() - Method in class ai.nightfall.scan.model.UploadFileChunkRequest
-
Get the file offset.
- getFileSizeBytes() - Method in class ai.nightfall.scan.model.FileUpload
-
Get the file size.
- getFileSizeBytes() - Method in class ai.nightfall.scan.model.InitializeFileUploadRequest
-
Get the file size.
- getFileUploadID() - Method in class ai.nightfall.scan.model.CompleteFileUploadRequest
-
Returns the file ID.
- getFileUploadID() - Method in class ai.nightfall.scan.model.UploadFileChunkRequest
-
Get the file ID.
- getFinding() - Method in class ai.nightfall.scan.model.Finding
-
Get the finding.
- getFindings() - Method in class ai.nightfall.scan.model.ScanTextResponse
-
Get the findings.
- getFindingsURL() - Method in class ai.nightfall.scan.model.FileScanWebhookNotification
-
Get the findings URL.
- getFixedConfidence() - Method in class ai.nightfall.scan.model.ConfidenceAdjustment
-
Return the confidence to adjust to.
- getId() - Method in class ai.nightfall.scan.model.ScanFileResponse
-
Get the file ID.
- getInfoTypeSubstitutionConfig() - Method in class ai.nightfall.scan.model.redaction.RedactionConfig
-
Get the info type substitution configuration.
- getLocation() - Method in class ai.nightfall.scan.model.Finding
-
Get the location of the finding.
- getLogicalOp() - Method in class ai.nightfall.scan.model.DetectionRule
-
Get the logical op.
- getMaskConfig() - Method in class ai.nightfall.scan.model.redaction.RedactionConfig
-
Get the masking configuration.
- getMaskingChar() - Method in class ai.nightfall.scan.model.redaction.MaskConfig
-
Returns the masking character.
- getMatchedDetectionRules() - Method in class ai.nightfall.scan.model.Finding
-
Get the list of matched detection rules.
- getMatchedDetectionRuleUUIDs() - Method in class ai.nightfall.scan.model.Finding
-
Get the list of matched detection rule UUIDs.
- getMatchType() - Method in class ai.nightfall.scan.model.ExclusionRule
-
Get the match type.
- getMessage() - Method in exception ai.nightfall.scan.model.NightfallAPIException
-
- getMessage() - Method in class ai.nightfall.scan.model.NightfallErrorResponse
-
Get the error message.
- getMessage() - Method in class ai.nightfall.scan.model.ScanFileResponse
-
Get the status message.
- getMimeType() - Method in class ai.nightfall.scan.model.FileUpload
-
Get the mime type.
- getMinConfidence() - Method in class ai.nightfall.scan.model.Detector
-
Return the minimum confidence.
- getMinNumFindings() - Method in class ai.nightfall.scan.model.Detector
-
Get the minimum number of findings.
- getName() - Method in class ai.nightfall.scan.model.DetectionRule
-
Get the name of the detection rule.
- getName() - Method in class ai.nightfall.scan.model.DetectorMetadata
-
Get the detector name.
- getNightfallDetector() - Method in class ai.nightfall.scan.model.Detector
-
Get the nightfall detector.
- getNumCharsToLeaveUnmasked() - Method in class ai.nightfall.scan.model.redaction.MaskConfig
-
Returns the number of characters to leave unmasked, defaults to 0.
- getPattern() - Method in class ai.nightfall.scan.model.Regex
-
Get the regex pattern.
- getPayload() - Method in class ai.nightfall.scan.model.ScanTextRequest
-
Get the request payload.
- getPolicy() - Method in class ai.nightfall.scan.model.ScanFileRequest
-
Get the policy.
- getPolicy() - Method in class ai.nightfall.scan.model.ScanTextRequest
-
Get the request scan policy.
- getPolicyUUID() - Method in class ai.nightfall.scan.model.ScanFileRequest
-
Get the policy UUID.
- getPolicyUUIDs() - Method in class ai.nightfall.scan.model.ScanTextRequest
-
Get the policy UUIDs to use when performing a scan.
- getProximity() - Method in class ai.nightfall.scan.model.ContextRule
-
Return the proximity.
- getPublicKey() - Method in class ai.nightfall.scan.model.redaction.CryptoConfig
-
Get the public key.
- getRedactedFinding() - Method in class ai.nightfall.scan.model.Finding
-
Returns the redacted finding.
- getRedactedLocation() - Method in class ai.nightfall.scan.model.Finding
-
Get the location that the redacted finding would occupy in the original content if it were to replace
the finding.
- getRedactedPayload() - Method in class ai.nightfall.scan.model.ScanTextResponse
-
Return the original request content with the configured redactions applied.
- getRedactionConfig() - Method in class ai.nightfall.scan.model.Detector
-
Returns the redaction configuration to-be-applied to this detector.
- getRegex() - Method in class ai.nightfall.scan.model.ContextRule
-
Return the regular expression.
- getRegex() - Method in class ai.nightfall.scan.model.Detector
-
Get the regex.
- getRegex() - Method in class ai.nightfall.scan.model.ExclusionRule
-
Get the regex.
- getRequestMetadata() - Method in class ai.nightfall.scan.model.FileScanWebhookNotification
-
Get the request metadata.
- getRequestMetadata() - Method in class ai.nightfall.scan.model.ScanFileRequest
-
Get the request metadata.
- getRowRange() - Method in class ai.nightfall.scan.model.Location
-
Get the finding's row range.
- getSlackAlert() - Method in class ai.nightfall.scan.model.alert.AlertConfig
-
Returns the Slack alert destination.
- getStart() - Method in class ai.nightfall.scan.model.Location.Range
-
Get the beginning of the range.
- getSubstitutionConfig() - Method in class ai.nightfall.scan.model.redaction.RedactionConfig
-
Get the substitution configuration.
- getSubstitutionPhrase() - Method in class ai.nightfall.scan.model.redaction.SubstitutionConfig
-
Returns the substitution phrase.
- getTarget() - Method in class ai.nightfall.scan.model.alert.SlackAlert
-
Returns the target conversation to which alerts should be delivered.
- getUploadID() - Method in class ai.nightfall.scan.model.FileScanWebhookNotification
-
Get the file ID.
- getUuid() - Method in class ai.nightfall.scan.model.DetectorMetadata
-
Get the detector UUID.
- getValidUntil() - Method in class ai.nightfall.scan.model.FileScanWebhookNotification
-
Get the findings URL expiry time.
- getValues() - Method in class ai.nightfall.scan.model.WordList
-
Get the list of words.
- getWebhookAlert() - Method in class ai.nightfall.scan.model.alert.AlertConfig
-
Returns the webhook alert destination.
- getWebhookURL() - Method in class ai.nightfall.scan.model.ScanPolicy
-
Deprecated.
- getWindowAfter() - Method in class ai.nightfall.scan.model.Proximity
-
Get the number of trailing bytes.
- getWindowBefore() - Method in class ai.nightfall.scan.model.Proximity
-
Get the number of leading bytes.
- getWordList() - Method in class ai.nightfall.scan.model.Detector
-
Get the word list.
- getWordList() - Method in class ai.nightfall.scan.model.ExclusionRule
-
Get the word list.
- scanFile(ScanFileRequest, InputStream, long) - Method in class ai.nightfall.scan.NightfallClient
-
A convenience method that abstracts the details of the multi-step file upload and scan process.
- scanFile(ScanFileRequest, InputStream, long, Duration) - Method in class ai.nightfall.scan.NightfallClient
-
A convenience method that abstracts the details of the multi-step file upload and scan process.
- ScanFileRequest - Class in ai.nightfall.scan.model
-
A container for a request to scan a file that was uploaded via the Nightfall API.
- ScanFileRequest(ScanPolicy, String) - Constructor for class ai.nightfall.scan.model.ScanFileRequest
-
Create a new request to scan a file.
- ScanFileRequest(UUID, String) - Constructor for class ai.nightfall.scan.model.ScanFileRequest
-
Create a new request to scan a file.
- ScanFileResponse - Class in ai.nightfall.scan.model
-
The object returned by the Nightfall API when an (asynchronous) file scan request was successfully triggered.
- ScanFileResponse() - Constructor for class ai.nightfall.scan.model.ScanFileResponse
-
- ScanFileResponse(UUID, String) - Constructor for class ai.nightfall.scan.model.ScanFileResponse
-
Construct a new ScanFileResponse object.
- ScanPolicy - Class in ai.nightfall.scan.model
-
An object containing configuration that describes how to scan a file.
- ScanPolicy(String, List<DetectionRule>, List<UUID>) - Constructor for class ai.nightfall.scan.model.ScanPolicy
-
Deprecated.
- ScanPolicy(AlertConfig, List<DetectionRule>, List<UUID>) - Constructor for class ai.nightfall.scan.model.ScanPolicy
-
Create a scan policy with the provided detection rules and detection rule UUIDs.
- scanText(ScanTextRequest) - Method in class ai.nightfall.scan.NightfallClient
-
Scans the provided plaintext against the provided detectors, and returns all findings.
- ScanTextConfig - Class in ai.nightfall.scan.model
-
The configuration object to use when scanning inline plaintext with the Nightfall API.
- ScanTextConfig(List<UUID>, List<DetectionRule>, int) - Constructor for class ai.nightfall.scan.model.ScanTextConfig
-
Create a scan configuration with the provided inline detection rules and detection rule UUIDs.
- ScanTextConfig(List<UUID>, List<DetectionRule>, int, RedactionConfig) - Constructor for class ai.nightfall.scan.model.ScanTextConfig
-
Create a scan configuration with the provided inline detection rules and detection rule UUIDs.
- ScanTextRequest - Class in ai.nightfall.scan.model
-
An object representing a request to scan inline plaintext with the Nightfall API.
- ScanTextRequest(List<String>, ScanTextConfig) - Constructor for class ai.nightfall.scan.model.ScanTextRequest
-
Create a request to scan the provided payload against the provided scanning
policy.
- ScanTextRequest(List<String>, List<UUID>) - Constructor for class ai.nightfall.scan.model.ScanTextRequest
-
Create a request to scan the provided payload against the provided
policyUUIDs.
- ScanTextResponse - Class in ai.nightfall.scan.model
-
The response object returned by a text scan request.
- ScanTextResponse() - Constructor for class ai.nightfall.scan.model.ScanTextResponse
-
- setAddress(String) - Method in class ai.nightfall.scan.model.alert.EmailAlert
-
Sets the email address to which alerts should be delivered.
- setAddress(String) - Method in class ai.nightfall.scan.model.alert.WebhookAlert
-
Sets the URL address to which alerts should be delivered.
- setAlertConfig(AlertConfig) - Method in class ai.nightfall.scan.model.ScanPolicy
-
Sets the alert configuration that specifies where alerts should be delivered when findings are detected.
- setAlertConfig(AlertConfig) - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Sets the alert configuration that specifies where alerts should be delivered when findings are detected.
- setCharsToIgnore(String[]) - Method in class ai.nightfall.scan.model.redaction.MaskConfig
-
Sets the characters to ignore during masking.
- setConfig(ScanTextConfig) - Method in class ai.nightfall.scan.model.ScanTextRequest
-
- setContent(byte[]) - Method in class ai.nightfall.scan.model.UploadFileChunkRequest
-
Set the request payload.
- setContextBytes(int) - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Set the number of context bytes.
- setContextRules(List<ContextRule>) - Method in class ai.nightfall.scan.model.Detector
-
Set the context rules.
- setDefaultRedactionConfig(RedactionConfig) - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Set the default redaction configuration to-be-applied to all detection rules, unless a more specific redaction
configuration is supplied at the detector level.
- setDetectionRules(List<DetectionRule>) - Method in class ai.nightfall.scan.model.ScanPolicy
-
Set the detection rules.
- setDetectionRules(List<DetectionRule>) - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Set the detection rules.
- setDetectionRuleUUIDs(List<UUID>) - Method in class ai.nightfall.scan.model.ScanPolicy
-
Set the detection rule UUIDs.
- setDetectionRuleUUIDs(List<UUID>) - Method in class ai.nightfall.scan.model.ScanTextConfig
-
Set the detection rule UUIDs.
- setDetectors(List<Detector>) - Method in class ai.nightfall.scan.model.DetectionRule
-
Set the detectors.
- setDisplayName(String) - Method in class ai.nightfall.scan.model.Detector
-
Set the display name.
- setEmailAlert(EmailAlert) - Method in class ai.nightfall.scan.model.alert.AlertConfig
-
Sets the email alert destination.
- setExclusionRules(List<ExclusionRule>) - Method in class ai.nightfall.scan.model.Detector
-
Set the exclusion rules.
- setFileUploadID(UUID) - Method in class ai.nightfall.scan.model.CompleteFileUploadRequest
-
Sets the file ID.
- setLogicalOp(LogicalOp) - Method in class ai.nightfall.scan.model.DetectionRule
-
Set the logical op.
- setMaskingChar(String) - Method in class ai.nightfall.scan.model.redaction.MaskConfig
-
Sets the masking character.
- setMaskLeftToRight(boolean) - Method in class ai.nightfall.scan.model.redaction.MaskConfig
-
Sets whether masking should be applied left-to-right.
- setMinConfidence(Confidence) - Method in class ai.nightfall.scan.model.Detector
-
Set the minimum confidence.
- setMinNumFindings(int) - Method in class ai.nightfall.scan.model.Detector
-
Set the minimum number of findings.
- setName(String) - Method in class ai.nightfall.scan.model.DetectionRule
-
Set the detection rule name.
- setNumCharsToLeaveUnmasked(int) - Method in class ai.nightfall.scan.model.redaction.MaskConfig
-
Sets the number of characters to leave unmasked.
- setPayload(List<String>) - Method in class ai.nightfall.scan.model.ScanTextRequest
-
Set the request payload.
- setPolicy(ScanTextConfig) - Method in class ai.nightfall.scan.model.ScanTextRequest
-
Set the request scan policy.
- setPolicyUUIDs(List<UUID>) - Method in class ai.nightfall.scan.model.ScanTextRequest
-
Set the policy UUIDs to use when performing a scan.
- setPublicKey(String) - Method in class ai.nightfall.scan.model.redaction.CryptoConfig
-
Set the public key.
- setRedactionConfig(RedactionConfig) - Method in class ai.nightfall.scan.model.Detector
-
Sets the redaction configuration to-be-applied to this detector.
- setRemoveFinding(boolean) - Method in class ai.nightfall.scan.model.redaction.RedactionConfig
-
Sets whether the original finding should be omitted in responses from the API.
- setRequestMetadata(String) - Method in class ai.nightfall.scan.model.ScanFileRequest
-
Set the request metadata.
- setSlackAlert(SlackAlert) - Method in class ai.nightfall.scan.model.alert.AlertConfig
-
Sets the Slack alert destination.
- setSubstitutionPhrase(String) - Method in class ai.nightfall.scan.model.redaction.SubstitutionConfig
-
Sets the substitution phrase.
- setTarget(String) - Method in class ai.nightfall.scan.model.alert.SlackAlert
-
Sets the target conversation to which alerts should be delivered.
- setWebhookAlert(WebhookAlert) - Method in class ai.nightfall.scan.model.alert.AlertConfig
-
Sets the webhook alert destination.
- setWebhookURL(String) - Method in class ai.nightfall.scan.model.ScanPolicy
-
Deprecated.
- SlackAlert - Class in ai.nightfall.scan.model.alert
-
The SlackAlert class contains the configuration required to allow clients to send asynchronous alerts to a
Slack workspace when findings are detected.
- SlackAlert(String) - Constructor for class ai.nightfall.scan.model.alert.SlackAlert
-
Creates an instance of the SlackAlert class with the provided conversation name.
- SubstitutionConfig - Class in ai.nightfall.scan.model.redaction
-
An object that specifies how findings should be substituted when returned by the API.
- SubstitutionConfig(String) - Constructor for class ai.nightfall.scan.model.redaction.SubstitutionConfig
-
Builds a substitution configuration with the provided phrase.
- WebhookAlert - Class in ai.nightfall.scan.model.alert
-
The WebhookAlert class contains the configuration required to allow clients to send a webhook event to an
external URL when findings are detected.
- WebhookAlert(String) - Constructor for class ai.nightfall.scan.model.alert.WebhookAlert
-
Creates an instance of the WebhookAlert class with the provided URL.
- WebhookSignatureValidator - Class in ai.nightfall.scan
-
A class that implements Nightfall webhook signature validation.
- WebhookSignatureValidator() - Constructor for class ai.nightfall.scan.WebhookSignatureValidator
-
Instantiates the validator with the default threshold.
- WebhookSignatureValidator(TemporalAmount) - Constructor for class ai.nightfall.scan.WebhookSignatureValidator
-
Instantiates the validator with the provided threshold.
- withAPIKey(String) - Method in class ai.nightfall.scan.NightfallClient.Builder
-
Sets the API key for the Nightfall Client.
- withConnectionTimeout(Duration) - Method in class ai.nightfall.scan.NightfallClient.Builder
-
Sets the connection timeout for the underlying HTTP client.
- withFileUploadConcurrency(int) - Method in class ai.nightfall.scan.NightfallClient.Builder
-
Sets the concurrency for file upload operations.
- withInterceptor(Interceptor) - Method in class ai.nightfall.scan.NightfallClient.Builder
-
Adds an interceptor to the HTTP client used to preform requests.
- withKeepAliveDuration(Duration) - Method in class ai.nightfall.scan.NightfallClient.Builder
-
Sets the keep-alive duration for a connection in the underlying HTTP connection pool.
- withMaxIdleConnections(int) - Method in class ai.nightfall.scan.NightfallClient.Builder
-
Sets the maximum number of idle connections in the underlying HTTP client.
- withReadTimeout(Duration) - Method in class ai.nightfall.scan.NightfallClient.Builder
-
Sets the read timeout for the underlying HTTP client.
- withWriteTimeout(Duration) - Method in class ai.nightfall.scan.NightfallClient.Builder
-
Sets the write timeout for the underlying HTTP client.
- WordList - Class in ai.nightfall.scan.model
-
A list of words that can be used to customize the behavior of a detector while Nightfall performs a scan.
- WordList(List<String>, boolean) - Constructor for class ai.nightfall.scan.model.WordList
-
Creates a new WordList object.