Interface JSONObfuscator.LimitConfigurer
- All Superinterfaces:
JSONObfuscator.Builder
- Enclosing class:
- JSONObfuscator
An object that can be used to configure handling when the obfuscated result exceeds a pre-defined limit.
- Author:
- Rob Spoor
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionwithTruncatedIndicator(String pattern) Sets the indicator to use when the obfuscated result is truncated due to the limit being exceeded.Methods inherited from interface com.github.robtimus.obfuscation.jackson.JSONObfuscator.Builder
allByDefault, build, caseInsensitiveByDefault, caseSensitiveByDefault, excludeArraysByDefault, excludeObjectsByDefault, forArraysByDefault, forObjectsByDefault, includeArraysByDefault, includeObjectsByDefault, limitTo, scalarsOnlyByDefault, transform, withJacksonVersion, withMalformedJSONWarning, withProperty, withProperty
-
Method Details
-
withTruncatedIndicator
Sets the indicator to use when the obfuscated result is truncated due to the limit being exceeded. There can be one place holder for the total number of characters. Defaults to... (total: %d). Usenullto omit the indicator.- Parameters:
pattern- The pattern to use as indicator.- Returns:
- This object.
-