Class SensitiveContentScannerPlan
- Namespace
- MailFathom.Application.SensitiveContent
- Assembly
- MailFathom.Application.dll
What one switched-on scanner looks for, after configuration has been resolved against its catalog.
public sealed record SensitiveContentScannerPlan : IEquatable<SensitiveContentScannerPlan>
- Inheritance
-
SensitiveContentScannerPlan
- Implements
- Inherited Members
Remarks
The categories here are the ones that will actually be looked for, spelled the way the scanner declares them rather than the way an operator capitalized them. That is what makes redaction reproducible: the same deployment produces the same placeholders whatever the configuration file looked like.
A suppressed rule is always inside one of those categories. A suppression can therefore silence part of a category that stays on, and can never switch a category on, which is the asymmetry that keeps the category the unit of configuration.
Properties
- Categories
Gets every category this scanner looks for.
- Scanner
Gets which of the two switches this plan belongs to.
- SuppressedRules
Gets every rule that stays silent inside a category that is otherwise looked for.
Methods
- Create(SensitiveContentScannerKind, IReadOnlyList<SensitiveContentCategory>, IReadOnlyList<SensitiveContentRule>)
Composes the plan for one scanner.
- Suppresses(SensitiveContentRule)
Reports whether a rule stays silent under this plan.