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