Table of Contents

Class MaskingSpecification

Namespace
GroupeIsa.Neos.Shared.Masking
Assembly
GroupeIsa.Neos.Shared.dll

Describes how a string value is masked: the masking type and its parameters.

public sealed record MaskingSpecification : IEquatable<MaskingSpecification>
Inheritance
MaskingSpecification
Implements
Inherited Members

Fields

DefaultMaskCharacter

The masking character used when none is specified.

public const char DefaultMaskCharacter = '*'

Field Value

char

DefaultVisibleSuffixLength

The visible suffix length used when none is specified.

public const int DefaultVisibleSuffixLength = 4

Field Value

int

Properties

MaskCharacter

Gets the character that replaces each masked character.

public char MaskCharacter { get; init; }

Property Value

char

RegularExpression

Gets the regular expression that designates the visible parts of the value (Regex only).

public string? RegularExpression { get; init; }

Property Value

string

Type

Gets the masking type.

public required MaskingType Type { get; init; }

Property Value

MaskingType

VisiblePrefixLength

Gets the number of characters left visible at the start of the value (Partial only).

public int VisiblePrefixLength { get; init; }

Property Value

int

VisibleSuffixLength

Gets the number of characters left visible at the end of the value (Partial only).

public int VisibleSuffixLength { get; init; }

Property Value

int