Share via


SessionSecurityTokenCacheKey 類別

定義

表示SessionSecurityTokenCache 中的項目的金鑰。

public ref class SessionSecurityTokenCacheKey
public class SessionSecurityTokenCacheKey
type SessionSecurityTokenCacheKey = class
Public Class SessionSecurityTokenCacheKey
繼承
SessionSecurityTokenCacheKey

備註

快取時需要兩個 SessionSecurityToken 索引。 其中一個是屬性所 SessionSecurityToken.ContextId 代表的內容標識碼,在所有會話令牌中都是唯一的。 另一個是金鑰產生,由 SessionSecurityToken.KeyGeneration 屬性表示,在會話令牌內是唯一的。 當發出會話令牌時,它只有內容標識碼。 更新會話令牌時,會新增金鑰產生。 更新之後,更新的會話令牌可透過內容識別碼和密鑰產生來唯一識別。

類型的 SessionSecurityTokenCacheKey 物件會當做會話令牌快取的索引使用。 索引一律會指定有效的 ContextId 屬性,但 KeyGeneration 屬性可能是 null,視令牌是否已更新而定。 另外還有選擇性 EndpointId 的 ,可提供令牌範圍所在的端點。

建構函式

SessionSecurityTokenCacheKey(String, UniqueId, UniqueId)

初始化 SessionSecurityTokenCacheKey 類別的新執行個體。

屬性

ContextId

取得快取索引鍵的內容 ID。

EndpointId

取得這個快取項目範圍的端點 ID。

IgnoreKeyGeneration

取得或設定值,這個值表示是否可在進行索引比較時忽略金鑰產生。

KeyGeneration

取得快取金鑰的金鑰產生。

方法

Equals(Object)

判斷指定物件與目前的快取索引鍵是否相同。

GetHashCode()

傳回目前快取索引鍵的雜湊碼。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

覆寫 ToString() 以提供唯一的識別項。

運算子

Equality(SessionSecurityTokenCacheKey, SessionSecurityTokenCacheKey)

實作 SessionSecurityTokenCacheKey 類別的等號比較運算子。

Inequality(SessionSecurityTokenCacheKey, SessionSecurityTokenCacheKey)

實作 SessionSecurityTokenCacheKey 類別的等號比較運算子。

適用於