PiiPolicy

data class PiiPolicy(val enabled: Boolean = false, val detectionMode: PiiDetectionMode = PiiDetectionMode.RULE_BASED, val action: PiiAction = PiiAction.REJECT, val minimumConfidence: Float = 0.7f, val fieldExclusions: Set<String> = emptySet(), val mlTimeoutMs: Long = 200)

Policy controlling PII detection behavior.

Since

0.5.0

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, detectionMode: PiiDetectionMode = PiiDetectionMode.RULE_BASED, action: PiiAction = PiiAction.REJECT, minimumConfidence: Float = 0.7f, fieldExclusions: Set<String> = emptySet(), mlTimeoutMs: Long = 200)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

What to do when PII is detected.

Link copied to clipboard

Detection strategy: rule-based regex or ML-assisted.

Link copied to clipboard

Whether PII detection is active.

Link copied to clipboard

JSON paths to exclude from scanning (e.g., "$.metadata.tag").

Link copied to clipboard

Minimum confidence threshold for a finding to be actionable.

Link copied to clipboard

Timeout for ML-assisted detection before fallback to rule-based.