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