Mask

annotation class Mask(val keepPrefix: Int = 0, val keepSuffix: Int = 0, val strategy: KClass<out MaskStrategy> = MaskStrategy::class)

How query results mask a Sensitive value.

The built-in mask keeps keepPrefix leading and keepSuffix trailing Unicode code points and replaces every other code point with one *; the default keeps nothing. A value too short to keep both edges is masked completely. A custom strategy replaces the built-in mask; keepPrefix and keepSuffix must then stay 0.

Properties

Link copied to clipboard
val keepPrefix: Int = 0
Link copied to clipboard
val keepSuffix: Int = 0
Link copied to clipboard

A custom strategy: a Kotlin object or a public class with a no-argument constructor. MaskStrategy itself, the default, selects the built-in mask.