// Token: 0x06000091 RID: 145 RVA: 0x00003D48 File Offset: 0x00001F48 public ClassificationDecoding(string ruleId, string[] tokens, FASTClassificationStore store) { if (tokens.Length > 3) { throw new ArgumentException("Illegal number of tokens. There must be only one, two, or three tokens. Number of tokens: " + tokens.Length); } this.RuleId = ruleId; this.Initialize(tokens, store); }
// Token: 0x06000090 RID: 144 RVA: 0x00003CE0 File Offset: 0x00001EE0 public ClassificationDecoding(string[] tokens, FASTClassificationStore store) { if (tokens.Length > 3) { throw new ArgumentException("Illegal number of tokens. There must be only one, two, or three tokens. Number of tokens: " + tokens.Length); } string text = tokens[0].Trim(); this.RuleId = store.RuleNameToRuleId(text); if (this.RuleId == null) { throw new ArgumentException("Illegal token at position 0 (must be a rule identifier), token: " + text); } this.Initialize(tokens, store); }
// Token: 0x06000092 RID: 146 RVA: 0x00003D80 File Offset: 0x00001F80 private void Initialize(string[] tokens, FASTClassificationStore store) { long?num = store.RuleIdToPrefixCode(this.RuleId); if (num == null) { throw new ArgumentException("Illegal token at position 1 (rule identifier exists but doesn't have a code), token: " + tokens[0]); } if (tokens.Length == 1) { this.isDefaultCountRange = true; this.isDefaultConfidenceRange = true; this.CountMinimum = ClassificationDecoding.TranslateToInternalValue(num.Value, 1U); this.CountMaximum = ClassificationDecoding.TranslateToInternalValue(num.Value, uint.MaxValue); return; } uint num2; uint num3; ClassificationDecoding.TranslateRangeToken(tokens[1], uint.MaxValue, out num2, out num3); if (num2 == 0U || num3 == 0U) { throw new ArgumentException("Classification does not allow zero in the count range. Range: " + tokens[1]); } this.isDefaultCountRange = (num2 == 1U && num3 == uint.MaxValue); this.CountMinimum = ClassificationDecoding.TranslateToInternalValue(num.Value, num2); this.CountMaximum = ClassificationDecoding.TranslateToInternalValue(num.Value, num3); if (tokens.Length != 3) { this.isDefaultConfidenceRange = true; return; } ClassificationDecoding.TranslateRangeToken(tokens[2], 100U, out num2, out num3); if (num2 == 0U || num3 == 0U || num2 > 100U || num3 > 100U) { throw new ArgumentException(string.Concat(new object[] { "Classification only allows a confidence range between 1 and ", 100U, " inclusive. Range: ", tokens[2] })); } this.isDefaultConfidenceRange = (num2 == 1U && num3 == 100U); this.ConfidenceMinimum = ClassificationDecoding.TranslateToInternalValue(num.Value, num2); this.ConfidenceMaximum = ClassificationDecoding.TranslateToInternalValue(num.Value, num3); }
// Token: 0x060000C8 RID: 200 RVA: 0x00005350 File Offset: 0x00003550 public SensitiveTypeWildcardExpander(string encoding, FASTClassificationStore store) { string[] array = encoding.Split(ClassificationDecoding.Delimiters); string text = array[0].Trim(); if (text.Length == 1 && text[0] == '*') { string[] array2 = store.AllRuleIds(); this.decodings = new ClassificationDecoding[array2.Length]; for (int i = 0; i < this.decodings.Length; i++) { this.decodings[i] = new ClassificationDecoding(array2[i], array, store); } return; } this.decodings = new ClassificationDecoding[1]; this.decodings[0] = new ClassificationDecoding(array, store); }
// Token: 0x0600008F RID: 143 RVA: 0x00003CCA File Offset: 0x00001ECA public ClassificationDecoding(string encoding, FASTClassificationStore store) : this(encoding.Split(ClassificationDecoding.Delimiters), store) { }
// Token: 0x06000050 RID: 80 RVA: 0x0000346A File Offset: 0x0000166A internal DLPClassificationProducer(ClassificationService classificationService, FASTClassificationStore ruleStore) { this.classificationService = classificationService; this.ruleStore = ruleStore; }