Interface JSONObfuscator.PropertyConfigurer
- All Superinterfaces:
JSONObfuscator.Builder
- Enclosing class:
- JSONObfuscator
An object that can be used to configure a property that should be obfuscated.
- Author:
- Rob Spoor
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe possible ways to deal with nested objects and arrays. -
Method Summary
Modifier and TypeMethodDescriptionall()Indicates that properties with the current name will be obfuscated if they are JSON objects or arrays.Indicates that properties with the current name will not be obfuscated if they are JSON arrays.Indicates that properties with the current name will not be obfuscated if they are JSON objects.forArrays(JSONObfuscator.PropertyConfigurer.ObfuscationMode obfuscationMode) Indicates how to handle properties if they are JSON arrays.forObjects(JSONObfuscator.PropertyConfigurer.ObfuscationMode obfuscationMode) Indicates how to handle properties if they are JSON objects.Indicates that properties with the current name will be obfuscated if they are JSON arrays.Indicates that properties with the current name will be obfuscated if they are JSON objects.Indicates that properties with the current name will not be obfuscated if they are JSON objects or arrays.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
-
scalarsOnly
Indicates that properties with the current name will not be obfuscated if they are JSON objects or arrays. This method is shorthand for calling bothexcludeObjects()andexcludeArrays().- Returns:
- This object.
-
excludeObjects
Indicates that properties with the current name will not be obfuscated if they are JSON objects. This method is an alias forforObjects(ObfuscationMode)in combination withJSONObfuscator.PropertyConfigurer.ObfuscationMode.EXCLUDE.- Returns:
- This object.
-
excludeArrays
Indicates that properties with the current name will not be obfuscated if they are JSON arrays. This method is an alias forforArrays(ObfuscationMode)in combination withJSONObfuscator.PropertyConfigurer.ObfuscationMode.EXCLUDE.- Returns:
- This object.
-
all
Indicates that properties with the current name will be obfuscated if they are JSON objects or arrays. This method is shorthand for calling bothincludeObjects()andincludeArrays().- Returns:
- This object.
-
includeObjects
Indicates that properties with the current name will be obfuscated if they are JSON objects. This method is an alias forforObjects(ObfuscationMode)in combination withJSONObfuscator.PropertyConfigurer.ObfuscationMode.OBFUSCATE.- Returns:
- This object.
-
includeArrays
Indicates that properties with the current name will be obfuscated if they are JSON arrays. This method is an alias forforArrays(ObfuscationMode)in combination withJSONObfuscator.PropertyConfigurer.ObfuscationMode.OBFUSCATE.- Returns:
- This object.
-
forObjects
JSONObfuscator.PropertyConfigurer forObjects(JSONObfuscator.PropertyConfigurer.ObfuscationMode obfuscationMode) Indicates how to handle properties if they are JSON objects. The default isJSONObfuscator.PropertyConfigurer.ObfuscationMode.OBFUSCATE.- Parameters:
obfuscationMode- The obfuscation mode that determines how to handle properties.- Returns:
- This object.
- Throws:
NullPointerException- If the given obfuscation mode isnull.- Since:
- 1.3
-
forArrays
JSONObfuscator.PropertyConfigurer forArrays(JSONObfuscator.PropertyConfigurer.ObfuscationMode obfuscationMode) Indicates how to handle properties if they are JSON arrays. The default isJSONObfuscator.PropertyConfigurer.ObfuscationMode.OBFUSCATE.- Parameters:
obfuscationMode- The obfuscation mode that determines how to handle properties.- Returns:
- This object.
- Throws:
NullPointerException- If the given obfuscation mode isnull.- Since:
- 1.3
-