Class HeaderObfuscator
A class that can be used to obfuscate headers. Thread-safe if all its obfuscation rules are.
Inherited Members
Namespace: Worldline.Acquiring.Sdk.Logging
Assembly: Worldline.Acquiring.Sdk.dll
Syntax
public class HeaderObfuscator
Fields
DefaultObfuscator
A default header obfuscator. This is equivalent to calling Custom().Build().
Declaration
public static readonly HeaderObfuscator DefaultObfuscator
Field Value
Type | Description |
---|---|
HeaderObfuscator |
Methods
Custom()
Returns a builder to create custom header obfuscators. This builder will contain some pre-defined obfuscation rules.These cannot be removed, but replacing them is possible.
Declaration
public static HeaderObfuscator.Builder Custom()
Returns
Type | Description |
---|---|
HeaderObfuscator.Builder |
ObfuscateHeader(string, string)
Obfuscates the value for the given header as necessary.
Declaration
public string ObfuscateHeader(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
string | value |
Returns
Type | Description |
---|---|
string |