RedactionPipeline class final
The layered redaction pipeline.
Wraps the eleven pure layer functions with priority-ordered merging, allowlist suppression, data-URL pass-through, idempotent marker output and statistics. See scan (detection) and redact (rewriting).
Constructors
-
RedactionPipeline({required List<
String> registeredSecrets, RedactionConfig config = const RedactionConfig()}) -
Creates a pipeline pre-loaded with
registeredSecrets.
Properties
- config ↔ RedactionConfig
-
The active configuration; assigning replaces it live.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
registeredSecrets
→ List<
String> -
The registered secret values, in registration order.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stats → RedactionStats
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
redact(
String text, {String? pathHint}) → String -
Redacts
textwith[REDACTED:<kindLabel>]markers. -
registerSecret(
String value) → void -
Registers
valuefor exact-value masking; values shorter than minValueLength are ignored. -
scan(
String text, {String? pathHint}) → List< RedactionMatch> -
Scans
textand returns the surviving matches: merged by layer priority (higher priority wins overlaps), sorted by RedactionMatch.start, non-overlapping. -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterSecret(
String value) → void -
Removes
valuefrom the registered secrets.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- minValueLength → const int
-
Values shorter than this are never registered — short strings appear
in ordinary output too often (parity with
SecretRedactor).