36 references to KeyGeneration
System.ServiceModel (36)
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (2)
578if (token.KeyGeneration != null) 580xml.WriteElementString("KeyGeneration", token.KeyGeneration.ToString());
System\ServiceModel\Security\SecurityContextTokenCache.cs (9)
61if (token.KeyGeneration == null) 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SecurityContextExpired, token.ContextId, token.KeyGeneration.ToString())); 69if (token.KeyGeneration == null) 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SecurityContextKeyExpired, token.ContextId, token.KeyGeneration.ToString())); 75object hashKey = GetHashKey(token.ContextId, token.KeyGeneration); 81if (token.KeyGeneration == null) 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\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 (10)
1338if (supportingToken.ContextId != this.currentSessionToken.ContextId || supportingToken.KeyGeneration != this.currentSessionToken.KeyGeneration) 1340throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.CurrentSessionTokenNotRenewed, supportingToken.KeyGeneration, this.currentSessionToken.KeyGeneration))); 1410throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SessionKeyExpiredException(SR.GetString(SR.SecurityContextKeyExpired, incomingToken.ContextId, incomingToken.KeyGeneration))); 1417if (this.futureSessionTokens.Count > 0 && incomingToken.KeyGeneration != this.currentSessionToken.KeyGeneration) 1422if (futureSessionTokens[i].KeyGeneration == incomingToken.KeyGeneration) 1440this.Settings.SessionTokenCache.RemoveContext(futureSessionTokens[i].ContextId, futureSessionTokens[i].KeyGeneration);
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (1)
238if (sct.KeyGeneration != generation)
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenAuthenticator.cs (2)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityContextTokenValidationException(SR.GetString(SR.SecurityContextExpired, contextId, sct.KeyGeneration == null ? "none" : sct.KeyGeneration.ToString())));
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\WSSecureConversationDec2005.cs (2)
110if (sct.KeyGeneration != null) 115XmlHelper.WriteStringAsUniqueId(writer, sct.KeyGeneration);
System\ServiceModel\Security\WSSecureConversationFeb2005.cs (2)
102if (sct.KeyGeneration != null) 106XmlHelper.WriteStringAsUniqueId(writer, sct.KeyGeneration);