44 references to ContextId
System.ServiceModel (44)
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (1)
577xml.WriteElementString("ContextId", token.ContextId.ToString());
System\ServiceModel\Security\AcceptorSessionSymmetricMessageSecurityProtocol.cs (1)
196if (signingSct == null || signingSct.ContextId != sessionId)
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
120if (signingSct != null && signingSct.ContextId == this.sessionId)
System\ServiceModel\Security\SecurityContextTokenCache.cs (9)
62throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SecurityContextExpiredNoKeyGeneration, token.ContextId)); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SecurityContextExpired, token.ContextId, token.KeyGeneration.ToString())); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SecurityContextKeyExpiredNoKeyGeneration, token.ContextId)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SecurityContextKeyExpired, token.ContextId, token.KeyGeneration.ToString())); 75object hashKey = GetHashKey(token.ContextId, token.KeyGeneration); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ContextAlreadyRegisteredNoKeyGeneration, token.ContextId))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ContextAlreadyRegistered, token.ContextId, token.KeyGeneration.ToString()))); 194base.TryReplaceItem(GetHashKey(token.ContextId, token.KeyGeneration), token, expirationTime); 234keys.Add(GetHashKey(tokens[i].ContextId, tokens[i].KeyGeneration));
System\ServiceModel\Security\SecurityMessageProperty.cs (2)
287if (sct != null && sct.ContextId == supportingSessionTokenToExclude.ContextId)
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (4)
754if (sct != null && sctSkiClause.Matches(sct.ContextId, sct.KeyGeneration)) 869sctCaches[j].RemoveContext(securityContextTokensToRemove[i].ContextId, securityContextTokensToRemove[i].KeyGeneration); 972if (sct != null && skiClause.Matches(sct.ContextId, sct.KeyGeneration)) 984if (sct != null && skiClause.Matches(sct.ContextId, sct.KeyGeneration))
System\ServiceModel\Security\SecuritySessionServerSettings.cs (19)
729IServerSecuritySessionChannel sessionChannel = this.FindSessionChannel(newSecurityContextToken.ContextId); 732throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.CannotFindSecuritySession, newSecurityContextToken.ContextId))); 740MessageFilter sctFilter = new SecuritySessionFilter(sessionToken.ContextId, this.sessionProtocolFactory.StandardsManager, (this.sessionProtocolFactory.SecurityHeaderLayout == SecurityHeaderLayout.Strict), this.SecurityStandardsManager.SecureConversationDriver.RenewAction.Value, this.SecurityStandardsManager.SecureConversationDriver.RenewResponseAction.Value); 788this.AddPendingSession(issuedSecurityContextToken.ContextId, channelBinder); 1039if (!this.settings.RemovePendingSession(this.sessionToken.ContextId)) 1041throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new CommunicationException(SR.GetString(SR.SecuritySessionNotPending, this.sessionToken.ContextId))); 1051settings.AddSessionChannel(this.sessionToken.ContextId, replySessionChannel); 1063settings.AddSessionChannel(this.sessionToken.ContextId, duplexSessionChannel); 1174this.sessionId = sessionToken.ContextId; 1262this.Settings.SessionTokenCache.RemoveAllContexts(this.currentSessionToken.ContextId); 1315this.Settings.SessionTokenCache.RemoveAllContexts(this.currentSessionToken.ContextId); 1338if (supportingToken.ContextId != this.currentSessionToken.ContextId || supportingToken.KeyGeneration != this.currentSessionToken.KeyGeneration) 1367if (sct != null && sct.ContextId == this.sessionId) 1378if (sct != null && sct.ContextId == this.sessionId) 1410throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SessionKeyExpiredException(SR.GetString(SR.SecurityContextKeyExpired, incomingToken.ContextId, incomingToken.KeyGeneration))); 1440this.Settings.SessionTokenCache.RemoveContext(futureSessionTokens[i].ContextId, futureSessionTokens[i].KeyGeneration); 2353this.channel.Settings.SessionTokenCache.RemoveAllContexts(this.channel.currentSessionToken.ContextId); 2502this.securityContextTokenId = sessionToken.ContextId;
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (1)
234if (sct.ContextId != contextId)
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenAuthenticator.cs (1)
31this.ThrowExpiredContextFaultException(sct.ContextId, sct);
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenHelper.cs (1)
85return new SessionSecurityToken(claimsPrincipal, sct.ContextId, sct.Id, String.Empty, sct.GetKeyBytes(), endpointId, sct.ValidFrom, sct.ValidTo, sct.KeyGeneration, sct.KeyEffectiveTime, sct.KeyExpirationTime, sctAuthPolicy, new Uri(version.Namespace.Value));
System\ServiceModel\Security\WrappedTokenCache.cs (3)
57SessionSecurityTokenCacheKey key = new SessionSecurityTokenCacheKey(_claimsHandler.EndpointId, token.ContextId, token.KeyGeneration); 138SessionSecurityTokenCacheKey key = new SessionSecurityTokenCacheKey(_claimsHandler.EndpointId, token.ContextId, token.KeyGeneration); 152SessionSecurityTokenCacheKey key = new SessionSecurityTokenCacheKey(_claimsHandler.EndpointId, token.ContextId, token.KeyGeneration);
System\ServiceModel\Security\WSSecureConversation.cs (1)
502XmlHelper.WriteStringAsUniqueId(writer, sct.ContextId);