public class Detector extends Object
| Constructor and Description |
|---|
Detector(Regex regex)
Create an instance of a detector based on a regular expression.
|
Detector(String nightfallDetector)
Create an instance of a detector based on a pre-built Nightfall detector.
|
Detector(UUID detectorUUID)
Create an instance of a detector by using an existing detector's UUID.
|
Detector(WordList wordList)
Create an instance of a detector based on a word list.
|
| Modifier and Type | Method and Description |
|---|---|
List<ContextRule> |
getContextRules()
Get the context rules.
|
String |
getDetectorType()
Get the detector type.
|
UUID |
getDetectorUUID()
Get the detector UUID.
|
String |
getDisplayName()
Get the display name.
|
List<ExclusionRule> |
getExclusionRules()
Get the exclusion rules.
|
Confidence |
getMinConfidence()
Return the minimum confidence.
|
int |
getMinNumFindings()
Get the minimum number of findings.
|
String |
getNightfallDetector()
Get the nightfall detector.
|
RedactionConfig |
getRedactionConfig()
Returns the redaction configuration to-be-applied to this detector.
|
Regex |
getRegex()
Get the regex.
|
WordList |
getWordList()
Get the word list.
|
void |
setContextRules(List<ContextRule> contextRules)
Set the context rules.
|
void |
setDisplayName(String displayName)
Set the display name.
|
void |
setExclusionRules(List<ExclusionRule> exclusionRules)
Set the exclusion rules.
|
void |
setMinConfidence(Confidence minConfidence)
Set the minimum confidence.
|
void |
setMinNumFindings(int minNumFindings)
Set the minimum number of findings.
|
void |
setRedactionConfig(RedactionConfig redactionConfig)
Sets the redaction configuration to-be-applied to this detector.
|
String |
toString() |
public Detector(String nightfallDetector)
nightfallDetector - the name of a pre-built Nightfall detectorpublic Detector(Regex regex)
regex - the regular expression configurationpublic Detector(WordList wordList)
wordList - the word list configurationpublic Detector(UUID detectorUUID)
detectorUUID - an existing detector's UUIDpublic Confidence getMinConfidence()
public void setMinConfidence(Confidence minConfidence)
minConfidence - the minimum confidence threshold.public int getMinNumFindings()
public void setMinNumFindings(int minNumFindings)
minNumFindings - the minimum number of occurrences of the detector required to trigger a finding matchpublic UUID getDetectorUUID()
public String getDisplayName()
public void setDisplayName(String displayName)
displayName - a display name for this detectorpublic String getDetectorType()
NIGHTFALL_DETECTOR, REGEX,
and WORD_LIST.public String getNightfallDetector()
public Regex getRegex()
public WordList getWordList()
public List<ContextRule> getContextRules()
public void setContextRules(List<ContextRule> contextRules)
contextRules - the context rules to use to customize the behavior of this detectorpublic List<ExclusionRule> getExclusionRules()
public void setExclusionRules(List<ExclusionRule> exclusionRules)
exclusionRules - the exclusion rules to use to customize the behavior of this detectorpublic RedactionConfig getRedactionConfig()
public void setRedactionConfig(RedactionConfig redactionConfig)
redactionConfig - the redaction configurationCopyright © 2022. All rights reserved.