Package com.onlinepayments.logging
Class BodyObfuscator.Builder
java.lang.Object
com.onlinepayments.logging.BodyObfuscator.Builder
- Enclosing class:
BodyObfuscator
-
Method Summary
Modifier and TypeMethodDescriptionbuild()obfuscateAll(String propertyName) Adds an obfuscation rule that will replace all characters with*.obfuscateAllButFirst(int count, String propertyName) Adds an obfuscation rule that will keep a fixed number of characters at the start, then replaces all other characters with*.obfuscateAllButLast(int count, String propertyName) Adds an obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with*.obfuscateCustom(String propertyName, ObfuscationRule obfuscationRule) Adds a custom, non-nullobfuscation rule.obfuscateWithFixedLength(int fixedLength, String propertyName) Adds an obfuscation rule that will replace values with a fixed length string containing only*.
-
Method Details
-
obfuscateAll
Adds an obfuscation rule that will replace all characters with*. -
obfuscateWithFixedLength
Adds an obfuscation rule that will replace values with a fixed length string containing only*. -
obfuscateAllButFirst
Adds an obfuscation rule that will keep a fixed number of characters at the start, then replaces all other characters with*. -
obfuscateAllButLast
Adds an obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with*. -
obfuscateCustom
Adds a custom, non-nullobfuscation rule. -
build
-