RedactionPolicy

data class RedactionPolicy(val sensitiveFieldNames: Set<String>, val replacement: String = "<redacted>", val textPatterns: List<Regex>)

Field matching is case-insensitive: sensitiveFieldNames is lower-cased on construction, so a caller-supplied policy naming "Authorization" behaves the same as "authorization".

Constructors

Link copied to clipboard
constructor(sensitiveFieldNames: Set<String>, replacement: String = "<redacted>", textPatterns: List<Regex>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard