Package com.onlinepayments.logging
Class HeaderObfuscator.Builder
java.lang.Object
com.onlinepayments.logging.HeaderObfuscator.Builder
- Enclosing class:
HeaderObfuscator
-
Method Summary
Modifier and TypeMethodDescriptionbuild()obfuscateAll(String headerName) Adds an obfuscation rule that will replace all characters with*.obfuscateAllButFirst(int count, String headerName) 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 headerName) Adds an obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with*.obfuscateCustom(String headerName, ObfuscationRule obfuscationRule) Adds a custom, non-nullobfuscation rule.obfuscateWithFixedLength(int fixedLength, String headerName) 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
-