Class SensitiveContentPlaceholder
- Namespace
- MailFathom.Application.SensitiveContent.Redaction
- Assembly
- MailFathom.Application.dll
The text that replaces a redacted region, which is the same text in every consumer.
public static class SensitiveContentPlaceholder
- Inheritance
-
SensitiveContentPlaceholder
- Inherited Members
Remarks
One scheme rather than one per consumer, because two consumers disagreeing about how the same message reads is the failure this feature cannot have: a citation drawn from a redacted chunk has to land on the same redacted text when the reader opens the message, or the citation reads as wrong.
The placeholder names the category and carries no part of what was found — not a prefix, not a length, not a masked remainder. A length alone narrows a credential's search space, and a preserved prefix names the service the credential belongs to, so neither is worth the readability it would buy.
What it does keep is coherence. A reader and a model both meet a marker that says a credential of a named kind stood here, which is what stops a redacted message from reading as a message with a hole in it.
Methods
- For(SensitiveContentFinding)
Produces the placeholder that replaces the region a finding covers.
- For(SensitiveContentCategory)
Produces the placeholder that replaces a region of one category.