Class SubstringFormatEntry
The Substring masking format extracts a portion of the original column value and uses it to replace the original value. It internally uses the Oracle SUBSTR function. It takes the start position and length as input, extracts substring from the original value using SUBSTR, and uses the substring to replace the original value. To learn more, check Substring in the Data Safe documentation.
Inherited Members
Namespace: Oci.DatasafeService.Models
Assembly: OCI.DotNetSDK.Datasafe.dll
Syntax
public class SubstringFormatEntry : FormatEntry
Properties
Length
Declaration
[Required(ErrorMessage = "Length is required.")]
[JsonProperty(PropertyName = "length")]
public int? Length { get; set; }
Property Value
Type | Description |
---|---|
int? | The number of characters that should be there in the substring. It should be an integer and greater than zero. |
Remarks
Required
StartPosition
Declaration
[Required(ErrorMessage = "StartPosition is required.")]
[JsonProperty(PropertyName = "startPosition")]
public int? StartPosition { get; set; }
Property Value
Type | Description |
---|---|
int? | The starting position in the original string from where the substring should be extracted. It can be either a positive or a negative integer. If It's negative, the counting starts from the end of the string. |
Remarks
Required