Class SensitiveContentScreeningPolicy
- Namespace
- MailFathom.Application.SensitiveContent.Egress
- Assembly
- MailFathom.Application.dll
Which of a deployment's findings stop an act rather than being redacted out of a result.
public sealed class SensitiveContentScreeningPolicy
- Inheritance
-
SensitiveContentScreeningPolicy
- Inherited Members
Remarks
The two questions this feature answers are separate and this type is the second of them. What a deployment detects is the scanners' switches and their category lists, and it is one answer shared by every path. What a detection does depends on where the text was going: on the paths a reader is served from, a finding is replaced by a placeholder and the reader is served; on an outgoing message it stops the act, because rewriting what somebody wrote and sending it under their own address is the one disposition no result justifies.
Which scanner may stop an act is therefore configured rather than assumed, and the reason is the asymmetry SensitiveContentScannerKind already records: a credential in a message somebody is sending is never something they meant to put there, while the names, addresses, and signature blocks a personal-data scanner reports are most of what ordinary correspondence is made of. A deployment that let the second stop a send would have turned sending off.
The categories are resolved from the plan once rather than read per finding, so a category a scanner is not looking for cannot appear here and a scanner that is switched off contributes none. A policy that refuses nothing is a policy that exists — the composition still holds it — and RefusesAnything is what a consumer reads to skip work that only a screen makes necessary.
Properties
- RefusesAnything
Gets whether any finding this deployment can produce stops a screened act.
Methods
- Create(SensitiveContentPlan, IReadOnlyList<SensitiveContentScannerKind>)
Composes the policy of a deployment from its plan and the scanners it lets stop an act.
- ScreeningNothing()
Composes the policy of a deployment that screens nothing, which is every deployment that scans nothing.
- StoppedBy(SensitiveContentFinding)
Finds which scanner's category stops the act one finding was found in, if any does.