Table of Contents

Class MaskingRules

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Configures which data patterns to mask.

public sealed class MaskingRules
Inheritance
MaskingRules
Inherited Members

Properties

Default

Gets default masking rules with all common patterns enabled.

public static MaskingRules Default { get; }

Property Value

MaskingRules

Hipaa

Gets HIPAA compliant rules (PHI patterns).

public static MaskingRules Hipaa { get; }

Property Value

MaskingRules

MaskCardNumber

Gets or sets a value indicating whether credit card numbers should be masked.

public bool MaskCardNumber { get; set; }

Property Value

bool

True to mask card numbers (4111-1111-1111-1111 -> --****-1111), false to leave unmasked.

MaskCharacter

Gets or sets the character used for masking. Defaults to '*'.

public char MaskCharacter { get; set; }

Property Value

char

MaskDateOfBirth

Gets or sets a value indicating whether dates of birth should be masked.

public bool MaskDateOfBirth { get; set; }

Property Value

bool

True to mask DOBs, false to leave unmasked.

MaskEmail

Gets or sets a value indicating whether email addresses should be masked.

public bool MaskEmail { get; set; }

Property Value

bool

True to mask emails ([email protected] -> j***@e***.com), false to leave unmasked.

MaskIpAddress

Gets or sets a value indicating whether IP addresses should be masked.

public bool MaskIpAddress { get; set; }

Property Value

bool

True to mask IPs (192.168.1.100 -> ..***.100), false to leave unmasked.

MaskPhone

Gets or sets a value indicating whether phone numbers should be masked.

public bool MaskPhone { get; set; }

Property Value

bool

True to mask phone numbers (555-123-4567 -> --4567), false to leave unmasked.

MaskSsn

Gets or sets a value indicating whether Social Security Numbers should be masked.

public bool MaskSsn { get; set; }

Property Value

bool

True to mask SSNs (123-45-6789 -> *--6789), false to leave unmasked.

PciDss

Gets PCI-DSS compliant rules (card numbers only).

public static MaskingRules PciDss { get; }

Property Value

MaskingRules

Strict

Gets strict masking rules for maximum protection (all patterns masked).

public static MaskingRules Strict { get; }

Property Value

MaskingRules