Share via


SecurityTokenCacheKey Members

[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

When caching an SCT there are two indexes required. One is the ContextId that is unique across all SCT and the next is KeyGeneration which is unique within an SCT. When an SCT is issued it has only a ContextId. When the SCT is renewed the KeyGeneration is added as an second index to the SCT. Now the renewed SCT is uniquely identifiable via the ContextId and KeyGeneration. The class SecurityTokenCacheKey is used as the index to the SCT cache. This index will always have a valid ContextId specified but the KeyGeneration may be null. There is also an optional EndpointId which gives the endpoint to which the token is scoped.

The following tables list the members exposed by the SecurityTokenCacheKey type.

Public Constructors

  Name Description
  SecurityTokenCacheKey Creates an instance of SecurityTokenCacheKey which is used an index while caching SecurityContextSecurityToken.

Top

Public Properties

  Name Description
public property CanIgnoreContextId Gets/Sets a boolean on whether KeyGeneration can be ignored while doing index comparison.
public property CanIgnoreEndpointId Gets/Sets a boolean on whether EndpointId can be ignored while doing index comparison.
public property CanIgnoreKeyGeneration Gets/Sets a boolean on whether KeyGeneration can be ignored while doing index comparison.
public property ContextId Gets the ContextId of the SecurityContextSecurityToken
public property EndpointId Gets the EndpointId to which this cache entry is scoped.
public property IsSessionMode  
public property KeyGeneration Gets the KeyGeneration of the SecurityContextSecurityToken

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Equals Overridden. Checks if the given object is the same as the current object.
public method GetHashCode Overridden. Returns a Hash code for this object.
public method GetType  (Inherited from Object)
public methodstatic Equality Implements the equality operator for
public methodstatic Inequality Implements the inequality operator for
public method ToString  (Inherited from Object)

Top

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

See Also

Reference

SecurityTokenCacheKey Class
Microsoft.IdentityModel.Tokens Namespace

Copyright © 2008 by Microsoft Corporation. All rights reserved.