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