2 instantiations of SessionSecurityToken
System.IdentityModel (2)
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
264
return new
SessionSecurityToken
(principal, null, validFrom, validTo);
292
return 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)
186
void WriteSessionToken(XmlWriter writer,
SessionSecurityToken
sessionToken)
197
SessionSecurityTokenHandler ssth = defaultHandlers[typeof(
SessionSecurityToken
)] as SessionSecurityTokenHandler;
216
if (_securityToken is
SessionSecurityToken
)
218
WriteSessionToken(writer, _securityToken as
SessionSecurityToken
);
System\IdentityModel\Tokens\MruSessionSecurityTokenCache.cs (7)
151
public override void AddOrUpdate(SessionSecurityTokenCacheKey key,
SessionSecurityToken
value, DateTime expirationTime)
177
public override
SessionSecurityToken
Get(SessionSecurityTokenCacheKey key)
185
SessionSecurityToken
sessionToken = null;
269
public override IEnumerable<
SessionSecurityToken
> GetAll(string endpointId, System.Xml.UniqueId contextId)
271
Collection<
SessionSecurityToken
> tokens = new Collection<
SessionSecurityToken
>();
338
public
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)
33
public abstract void AddOrUpdate(SessionSecurityTokenCacheKey key,
SessionSecurityToken
value, DateTime expiryTime);
41
public abstract IEnumerable<
SessionSecurityToken
> GetAll(string endpointId, System.Xml.UniqueId contextId);
48
public 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.
275
public virtual
SessionSecurityToken
CreateSessionSecurityToken(
324
/// <returns>An instance of <see cref="
SessionSecurityToken
"/>.</returns>
338
/// <returns>An instance of <see cref="
SessionSecurityToken
"/>.</returns>
458
SessionSecurityToken
sessionToken = securityContextToken as
SessionSecurityToken
;
548
get { 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>
585
SessionSecurityToken
sessionToken = token as
SessionSecurityToken
;
627
/// <param name="token">The <see cref="
SessionSecurityToken
"/> to validate.</param>
633
public virtual ReadOnlyCollection<ClaimsIdentity> ValidateToken(
SessionSecurityToken
token, string endpointId)
667
/// <param name="token">The <see cref="
SessionSecurityToken
"/> to validate.</param>
672
protected virtual void ValidateSession(
SessionSecurityToken
securityToken)
709
public virtual byte[] WriteToken(
SessionSecurityToken
sessionToken)
748
SessionSecurityToken
sessionToken = token as
SessionSecurityToken
;
System.ServiceModel (12)
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenHelper.cs (3)
16
static public
SessionSecurityToken
ConvertSctToSessionToken(SecurityContextSecurityToken sct)
21
static public
SessionSecurityToken
ConvertSctToSessionToken(SecurityContextSecurityToken sct, SecureConversationVersion version)
88
static public SecurityContextSecurityToken ConvertSessionTokenToSecurityContextSecurityToken(
SessionSecurityToken
token)
System\ServiceModel\Security\WrappedSessionSecurityTokenAuthenticator.cs (1)
100
SessionSecurityToken
sessionToken = SecurityContextSecurityTokenHelper.ConvertSctToSessionToken( sct );
System\ServiceModel\Security\WrappedTokenCache.cs (6)
58
SessionSecurityToken
sessionToken = SecurityContextSecurityTokenHelper.ConvertSctToSessionToken(token, SecureConversationVersion.Default);
77
IEnumerable<
SessionSecurityToken
> cachedTokens = _tokenCache.GetAll(_claimsHandler.EndpointId, contextId);
80
foreach (
SessionSecurityToken
sessionSct in cachedTokens)
95
SessionSecurityToken
token = null;
139
SessionSecurityToken
sessionToken = SecurityContextSecurityTokenHelper.ConvertSctToSessionToken(token, SecureConversationVersion.Default);
153
SessionSecurityToken
sessionToken = SecurityContextSecurityTokenHelper.ConvertSctToSessionToken(token, SecureConversationVersion.Default);
System\ServiceModel\Security\WsSecurityTokenSerializerAdapter.cs (2)
212
SessionSecurityToken
sessionToken = token as
SessionSecurityToken
;