Class JsonMaskingConfig.Builder
java.lang.Object
dev.blaauwendraad.masker.json.config.JsonMaskingConfig.Builder
- Enclosing class:
- JsonMaskingConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalgorithmTypeOverride(JsonMaskerAlgorithmType algorithmType) Overrides the automatically chosen masking algorithmJsonMaskerAlgorithmType.KEYS_CONTAIN.build()Configures whether the target keys are considered case-sensitive (e.g.Disables that target keys starting with a '$' are interpreted as JSON pathsmaskNumberValuesWith(int maskNumberValuesWith) Specifies the number with which numeric values should be replaced.obfuscationLength(int obfuscationLength) protected JsonMaskingConfig.Builderself()
-
Constructor Details
-
Builder
-
-
Method Details
-
maskNumberValuesWith
Specifies the number with which numeric values should be replaced. -1 denotes number masking is disabled.Default value: -1
-
algorithmTypeOverride
Overrides the automatically chosen masking algorithmJsonMaskerAlgorithmType.KEYS_CONTAIN.- Parameters:
algorithmType- the override algorithm which will be used
-
obfuscationLength
- Parameters:
obfuscationLength- specifies the fixed length of the mask when target value lengths is obfuscated. E.g. masking any string value with obfuscation length 2 results in "**".-1 means length obfuscation is disabled.
Default value: -1 (disabled).
-
caseSensitiveTargetKeys
Configures whether the target keys are considered case-sensitive (e.g. cvv != CVV)Default value: false (target keys are considered case-insensitive)
-
disableJsonPathResolving
Disables that target keys starting with a '$' are interpreted as JSON pathsDefault value: true (JSON path resolving is enabled)
-
build
-
self
-