Class BodyObfuscator.Builder

java.lang.Object
com.onlinepayments.logging.BodyObfuscator.Builder
Enclosing class:
BodyObfuscator

public static final class BodyObfuscator.Builder extends Object
  • Method Details

    • obfuscateAll

      public BodyObfuscator.Builder obfuscateAll(String propertyName)
      Adds an obfuscation rule that will replace all characters with *.
    • obfuscateWithFixedLength

      public BodyObfuscator.Builder obfuscateWithFixedLength(int fixedLength, String propertyName)
      Adds an obfuscation rule that will replace values with a fixed length string containing only *.
    • obfuscateAllButFirst

      public BodyObfuscator.Builder 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

      public BodyObfuscator.Builder 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

      public BodyObfuscator.Builder obfuscateCustom(String propertyName, ObfuscationRule obfuscationRule)
      Adds a custom, non-null obfuscation rule.
    • build

      public BodyObfuscator build()