2 writes to tokens
System.ServiceModel (2)
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (2)
31this.tokens = new SecurityTokenEntry[InitialTokenArraySize]; 74this.tokens = newTokens;
17 references to tokens
System.ServiceModel (17)
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (17)
65this.tokens[this.tokenCount++] = new SecurityTokenEntry(token, tokenParameters, allowedReferenceStyle); 70if (this.tokenCount == this.tokens.Length) 72SecurityTokenEntry[] newTokens = new SecurityTokenEntry[this.tokens.Length * 2]; 73Array.Copy(this.tokens, 0, newTokens, 0, this.tokenCount); 122securityKey = this.tokens[i].Token.ResolveKeyIdentifierClause(keyIdentifierClause); 157if (matchOnlyExternal && tokens[i].AllowedReferenceStyle != SecurityTokenReferenceStyle.External) 162SecurityToken token = tokens[i].Token; 163if (tokens[i].TokenParameters != null && tokens[i].TokenParameters.MatchesKeyIdentifierClause(token, keyIdentifierClause, tokens[i].AllowedReferenceStyle)) 168else if (tokens[i].TokenParameters == null) 171if (tokens[i].AllowedReferenceStyle == SecurityTokenReferenceStyle.Internal && MatchDirectReference(token, keyIdentifierClause)) 217DerivedKeySecurityToken derivedKeyToken = this.tokens[i].Token as DerivedKeySecurityToken; 226resolvedToken = this.tokens[i].Token; 257i, this.tokens[i].AllowedReferenceStyle, this.tokens[i].Token.GetType(), tokens[i].TokenParameters);