Redigera

Dela via


SessionSecurityTokenCacheKey Class

Definition

Represents the key for an entry in a SessionSecurityTokenCache.

public ref class SessionSecurityTokenCacheKey
public class SessionSecurityTokenCacheKey
type SessionSecurityTokenCacheKey = class
Public Class SessionSecurityTokenCacheKey
Inheritance
SessionSecurityTokenCacheKey

Remarks

When caching a SessionSecurityToken there are two indexes required. One is the context ID, represented by the SessionSecurityToken.ContextId property, that is unique across all session tokens. The other is the key generation, represented by the SessionSecurityToken.KeyGeneration property, which is unique within a session token. When a session token is issued it has only a context ID. When the session token is renewed, the key generation is added. After renewal, the renewed session token is uniquely identifiable via the context ID and key generation.

Objects of type SessionSecurityTokenCacheKey are used as the indexes to the session token cache. An index will always have a valid ContextId property specified, but the KeyGeneration property may be null, depending on whether the token has been renewed. There is also an optional EndpointId which gives the endpoint to which the token is scoped.

Constructors

SessionSecurityTokenCacheKey(String, UniqueId, UniqueId)

Initializes a new instance of the SessionSecurityTokenCacheKey class.

Properties

ContextId

Gets the context ID for the cache key.

EndpointId

Gets the Endpoint ID to which this cache entry is scoped.

IgnoreKeyGeneration

Gets or sets a value that indicates whether key generation can be ignored when doing index comparison.

KeyGeneration

Gets the key generation for the cache key.

Methods

Equals(Object)

Determines whether the specified object is the same as the current cache key.

GetHashCode()

Returns a hash code for the current cache key.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Overrides ToString() to provide a unique identifier.

Operators

Equality(SessionSecurityTokenCacheKey, SessionSecurityTokenCacheKey)

Implements the equality operator for the SessionSecurityTokenCacheKey class.

Inequality(SessionSecurityTokenCacheKey, SessionSecurityTokenCacheKey)

Implements the equality operator for the SessionSecurityTokenCacheKey class.

Applies to