Package ai.nightfall.scan.model
Class ContextRule
java.lang.Object
ai.nightfall.scan.model.ContextRule
An object that describes how a regular expression may be used to adjust the confidence of a candidate finding.
This context rule will be applied within the provided byte proximity, and if the regular expression matches, then
the confidence associated with the finding will be adjusted to the value prescribed.
-
Constructor Summary
ConstructorsConstructorDescriptionContextRule(Regex regex, Proximity proximity, ConfidenceAdjustment confidenceAdjustment) Create a new Context Rule. -
Method Summary
Modifier and TypeMethodDescriptionReturn the confidence adjustment.Return the proximity.getRegex()Return the regular expression.
-
Constructor Details
-
ContextRule
Create a new Context Rule.- Parameters:
regex- the regular expression configurationproximity- the proximity in which to evaluate the regular expressionconfidenceAdjustment- describes how to adjust the confidence of a finding if the regular expression matches
-
-
Method Details
-
getRegex
Return the regular expression.- Returns:
- the regular expression
-
getProximity
Return the proximity.- Returns:
- the proximity
-
getConfidenceAdjustment
Return the confidence adjustment.- Returns:
- the confidence adjustment
-