EscrowSensitiveValueRedactor
in package
FinalYes
Table of Contents
Constants
- REDACTED : mixed = '[REDACTED]'
Methods
- redactMetadata() : array<string, mixed>
- redactNotes() : string|null
- Redact sensitive key/value material from free-form ceremony notes.
- isSensitiveKey() : bool
- Detect metadata keys likely to contain KEK/share/plaintext material.
- redactValue() : mixed
Constants
REDACTED
private
mixed
REDACTED
= '[REDACTED]'
Methods
redactMetadata()
public
redactMetadata(array<string, mixed> $metadata) : array<string, mixed>
Parameters
- $metadata : array<string, mixed>
-
Metadata to sanitize
Return values
array<string, mixed>redactNotes()
Redact sensitive key/value material from free-form ceremony notes.
public
redactNotes(string|null $notes) : string|null
Parameters
- $notes : string|null
-
Notes to sanitize
Return values
string|nullisSensitiveKey()
Detect metadata keys likely to contain KEK/share/plaintext material.
private
isSensitiveKey(string $key) : bool
Parameters
- $key : string
-
Metadata key
Return values
boolredactValue()
private
redactValue(mixed $value) : mixed
Parameters
- $value : mixed
-
Value to sanitize