FieldPolicy

data class FieldPolicy(val field: String, val strategy: MaskingStrategy, val placeholder: String? = null)

A resolved masking decision for a single field - the output of policy resolution.

Constructors

Link copied to clipboard
constructor(field: String, strategy: MaskingStrategy, placeholder: String? = null)

Properties

Link copied to clipboard

The name of the field or property the strategy applies to.

Link copied to clipboard

The replacement written when redacting a String field; when null it falls back to MaskingStrategy.defaultPlaceholder. Ignored for non-String fields, which mask to JSON null.

Link copied to clipboard