Ejemplo n.º 1
0
        public void AddOrReplace(SensitiveString ss)
        {
            SensitiveString existingItem = this.Items.FirstOrDefault(item => item.OriginalValue == ss.OriginalValue);

            if (existingItem == null)
            {
                this.Items.Add(ss);
            }
            else
            {
                this.Items.Remove(existingItem);
                this.Items.Add(ss);
            }
        }
Ejemplo n.º 2
0
        public void _AssignSensitiveString(string sensitiveString, int replacementType = (int)SensitiveStringReplacementType.Replace50PercentInMiddle, string replacementString = "...hidden...")
        {
            SensitiveString ss = new SensitiveString(sensitiveString, replacementType, replacementString);

            this._sensitiveStringsList.AddOrReplace(ss);
        }