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 | |
---|---|---|
CanIgnoreContextId | Gets/Sets a boolean on whether KeyGeneration can be ignored while doing index comparison. | |
CanIgnoreEndpointId | Gets/Sets a boolean on whether EndpointId can be ignored while doing index comparison. | |
CanIgnoreKeyGeneration | Gets/Sets a boolean on whether KeyGeneration can be ignored while doing index comparison. | |
ContextId | Gets the ContextId of the SecurityContextSecurityToken | |
EndpointId | Gets the EndpointId to which this cache entry is scoped. | |
IsSessionMode | ||
KeyGeneration | Gets the KeyGeneration of the SecurityContextSecurityToken |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
Equals | Overridden. Checks if the given object is the same as the current object. | |
GetHashCode | Overridden. Returns a Hash code for this object. | |
GetType | (Inherited from Object) | |
Equality | Implements the equality operator for | |
Inequality | Implements the inequality operator for | |
ToString | (Inherited from Object) |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object) | |
MemberwiseClone | (Inherited from Object) |
Top
See Also
Reference
SecurityTokenCacheKey Class
Microsoft.IdentityModel.Tokens Namespace
Copyright © 2008 by Microsoft Corporation. All rights reserved.