2 instantiations of SessionSecurityToken
System.IdentityModel (2)
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
264return new SessionSecurityToken(principal, null, validFrom, validTo); 292return new SessionSecurityToken(principal, context, endpointId, validFrom, validTo);
65 references to SessionSecurityToken
System.IdentityModel (53)
System\IdentityModel\Configuration\IdentityModelCaches.cs (1)
41/// Gets or sets the SessionSecurityTokenCache that is used to cache the <see cref="SessionSecurityToken"/>
System\IdentityModel\Configuration\IdentityModelCachesElement.cs (1)
32/// This cache is used for caching <see cref="System.IdentityModel.Tokens.SessionSecurityToken" />.
System\IdentityModel\Diagnostics\SecurityTraceRecordHelper.cs (4)
186void WriteSessionToken(XmlWriter writer, SessionSecurityToken sessionToken) 197SessionSecurityTokenHandler ssth = defaultHandlers[typeof(SessionSecurityToken)] as SessionSecurityTokenHandler; 216if (_securityToken is SessionSecurityToken) 218WriteSessionToken(writer, _securityToken as SessionSecurityToken);
System\IdentityModel\Tokens\MruSessionSecurityTokenCache.cs (7)
151public override void AddOrUpdate(SessionSecurityTokenCacheKey key, SessionSecurityToken value, DateTime expirationTime) 177public override SessionSecurityToken Get(SessionSecurityTokenCacheKey key) 185SessionSecurityToken sessionToken = null; 269public override IEnumerable<SessionSecurityToken> GetAll(string endpointId, System.Xml.UniqueId contextId) 271Collection<SessionSecurityToken> tokens = new Collection<SessionSecurityToken>(); 338public SessionSecurityToken Value
System\IdentityModel\Tokens\SessionSecurityToken.cs (3)
120/// Initializes a new instance of the <see cref="SessionSecurityToken"/> class. 140/// Initializes a new instance of the <see cref="SessionSecurityToken"/> class. 162/// Initializes a new instance of the <see cref="SessionSecurityToken"/> class.
System\IdentityModel\Tokens\SessionSecurityTokenCache.cs (3)
33public abstract void AddOrUpdate(SessionSecurityTokenCacheKey key, SessionSecurityToken value, DateTime expiryTime); 41public abstract IEnumerable<SessionSecurityToken> GetAll(string endpointId, System.Xml.UniqueId contextId); 48public abstract SessionSecurityToken Get(SessionSecurityTokenCacheKey key);
System\IdentityModel\Tokens\SessionSecurityTokenCacheKey.cs (14)
13/// When caching an <see cref="SessionSecurityToken"/> there are two indexes required. One is the ContextId 14/// that is unique across all <see cref="SessionSecurityToken"/> and the next is KeyGeneration which is 15/// unique within a session. When an <see cref="SessionSecurityToken"/> is issued it has only a ContextId. When 16/// the <see cref="SessionSecurityToken"/> is renewed the KeyGeneration is added as an second index to the 17/// <see cref="SessionSecurityToken"/>. Now the renewed <see cref="SessionSecurityToken"/> is uniquely identifiable via the ContextId and 20/// to the <see cref="SessionSecurityToken"/> cache. This index will always have a valid ContextId specified 33/// is used as an index while caching <see cref="SessionSecurityToken"/>. 35/// <param name="endpointId">The endpoint Id to which the <see cref="SessionSecurityToken"/> is scoped.</param> 36/// <param name="contextId">UniqueId of the <see cref="SessionSecurityToken"/>.</param> 37/// <param name="keyGeneration">UniqueId which is available when the <see cref="SessionSecurityToken"/> is renewed. Will be 38/// null when caching a new <see cref="SessionSecurityToken"/>.</param> 74/// Gets the ContextId of the <see cref="SessionSecurityToken"/> 96/// Gets the KeyGeneration of the <see cref="SessionSecurityToken"/>
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (20)
24/// A <see cref="SecurityTokenHandler"/> that processes <see cref="SessionSecurityToken"/>. 268/// Creates a <see cref="SessionSecurityToken"/> based on an <see cref="ClaimsPrincipal"/> and a valid time range. 275public virtual SessionSecurityToken CreateSessionSecurityToken( 324/// <returns>An instance of <see cref="SessionSecurityToken"/>.</returns> 338/// <returns>An instance of <see cref="SessionSecurityToken"/>.</returns> 458SessionSecurityToken sessionToken = securityContextToken as SessionSecurityToken; 548get { return typeof(SessionSecurityToken); } 572/// Validates a <see cref="SessionSecurityToken"/>. 574/// <param name="token">The <see cref="SessionSecurityToken"/> to validate.</param> 577/// <exception cref="ArgumentException">The token is not assignable from <see cref="SessionSecurityToken"/>.</exception> 585SessionSecurityToken sessionToken = token as SessionSecurityToken; 627/// <param name="token">The <see cref="SessionSecurityToken"/> to validate.</param> 633public virtual ReadOnlyCollection<ClaimsIdentity> ValidateToken(SessionSecurityToken token, string endpointId) 667/// <param name="token">The <see cref="SessionSecurityToken"/> to validate.</param> 672protected virtual void ValidateSession(SessionSecurityToken securityToken) 709public virtual byte[] WriteToken(SessionSecurityToken sessionToken) 748SessionSecurityToken sessionToken = token as SessionSecurityToken;
System.ServiceModel (12)
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenHelper.cs (3)
16static public SessionSecurityToken ConvertSctToSessionToken(SecurityContextSecurityToken sct) 21static public SessionSecurityToken ConvertSctToSessionToken(SecurityContextSecurityToken sct, SecureConversationVersion version) 88static public SecurityContextSecurityToken ConvertSessionTokenToSecurityContextSecurityToken(SessionSecurityToken token)
System\ServiceModel\Security\WrappedSessionSecurityTokenAuthenticator.cs (1)
100SessionSecurityToken sessionToken = SecurityContextSecurityTokenHelper.ConvertSctToSessionToken( sct );
System\ServiceModel\Security\WrappedTokenCache.cs (6)
58SessionSecurityToken sessionToken = SecurityContextSecurityTokenHelper.ConvertSctToSessionToken(token, SecureConversationVersion.Default); 77IEnumerable<SessionSecurityToken> cachedTokens = _tokenCache.GetAll(_claimsHandler.EndpointId, contextId); 80foreach (SessionSecurityToken sessionSct in cachedTokens) 95SessionSecurityToken token = null; 139SessionSecurityToken sessionToken = SecurityContextSecurityTokenHelper.ConvertSctToSessionToken(token, SecureConversationVersion.Default); 153SessionSecurityToken sessionToken = SecurityContextSecurityTokenHelper.ConvertSctToSessionToken(token, SecureConversationVersion.Default);
System\ServiceModel\Security\WsSecurityTokenSerializerAdapter.cs (2)
212SessionSecurityToken sessionToken = token as SessionSecurityToken;