Class MaskingSpecification
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
DefaultVisibleSuffixLength
The visible suffix length used when none is specified.
public const int DefaultVisibleSuffixLength = 4
Field Value
Properties
MaskCharacter
Gets the character that replaces each masked character.
public char MaskCharacter { get; init; }
Property Value
RegularExpression
Gets the regular expression that designates the visible parts of the value (Regex only).
public string? RegularExpression { get; init; }
Property Value
Type
Gets the masking type.
public required MaskingType Type { get; init; }
Property Value
VisiblePrefixLength
Gets the number of characters left visible at the start of the value (Partial only).
public int VisiblePrefixLength { get; init; }
Property Value
VisibleSuffixLength
Gets the number of characters left visible at the end of the value (Partial only).
public int VisibleSuffixLength { get; init; }