Class HeaderObfuscator.Builder

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

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

    • obfuscateAll

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

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

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

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

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

      public HeaderObfuscator build()