Show / Hide Table of Contents

Class AnonymizerConfiguration

The Class AnonymizerConfiguration represents a complete configuration for the Anonymizer class. For each possible DataCategory an AnonymizerApproach is set to indicate whether the paths related to this option are to be scrambled or removed from the message.

Inheritance
System.Object
AnonymizerConfiguration
Namespace: BO4E.Extensions.Encryption
Assembly: BO4E-dotnet.Extensions.Encryption.dll
Syntax
public class AnonymizerConfiguration : object

Constructors

| Improve this Doc View Source

AnonymizerConfiguration()

This constructor initialises all options with KEEP by default => leaves the Business Object unchanged.

Declaration
public AnonymizerConfiguration()

Fields

| Improve this Doc View Source

hashingSalt

base64 encoded bytes used to salt hashing (HASH

Declaration
public string hashingSalt
Field Value
Type Description
System.String
| Improve this Doc View Source

unaffectedUserProperties

set of key in UserProperties / UserProperties that should not be affected by the anonymizing operations

Declaration
public HashSet<string> unaffectedUserProperties
Field Value
Type Description
HashSet<System.String>

Properties

| Improve this Doc View Source

ConfigurationKey

Declaration
public string ConfigurationKey { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

operations

Declaration
public Dictionary<DataCategory, AnonymizerApproach> operations { get; }
Property Value
Type Description
Dictionary<DataCategory, AnonymizerApproach>

Methods

| Improve this Doc View Source

ContainsNonKeepingOperations()

check if there are any operations in the configuration that actually change the object if an anonymizer with this configuration is applied.

Declaration
public bool ContainsNonKeepingOperations()
Returns
Type Description
System.Boolean

true if configuration potentially changes something

| Improve this Doc View Source

GetSalt()

returns the base64 encoded bytes from hashingSalt as byte array

Declaration
public byte[] GetSalt()
Returns
Type Description
System.Byte[]

byte array or empty byte array if hashing salt is not set.

| Improve this Doc View Source

IsInitial()

opposite of ContainsNonKeepingOperations()

Declaration
public bool IsInitial()
Returns
Type Description
System.Boolean

opposite of ContainsNonKeepingOperations()

| Improve this Doc View Source

SetOption(DataCategory, AnonymizerApproach)

Sets the passed anonymizerOption anonymizerApproach

Declaration
public void SetOption(DataCategory anonymizerOption, AnonymizerApproach anonymizerApproach)
Parameters
Type Name Description
DataCategory anonymizerOption

the passed DataCategory to

AnonymizerApproach anonymizerApproach

t

Extension Methods

BusinessObjectExtensions.DeepClone<T>(T)
COMExtensions.DeepClone<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX