Share via


TokenReplayCache 類別

定義

抽象基底類別,定義用來偵測重新執行的語彙基元的快取的方法。

public ref class TokenReplayCache abstract : System::IdentityModel::Configuration::ICustomIdentityConfiguration
public abstract class TokenReplayCache : System.IdentityModel.Configuration.ICustomIdentityConfiguration
type TokenReplayCache = class
    interface ICustomIdentityConfiguration
Public MustInherit Class TokenReplayCache
Implements ICustomIdentityConfiguration
繼承
TokenReplayCache
實作

備註

實作時,快取應該以排程時間間隔清除令牌。 方法 AddOrUpdate 會將安全性令牌與金鑰和到期時間產生關聯。 可用來搜尋快取中的令牌,或從快取中移除令牌。 到期時間表示應該從快取清除令牌的時間。

建構函式

TokenReplayCache()

從衍生類別中的建構函式呼叫,以將 TokenReplayCache 類別初始化。

方法

AddOrUpdate(String, SecurityToken, DateTime)

在衍生類別中覆寫時,嘗試加入新項目或更新現有的項目。

Contains(String)

在衍生類別中覆寫時,會傳回值,這個值指出快取中是否存在符合的項目。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Get(String)

在衍生類別中覆寫時,嘗試取得指定的項目。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
LoadCustomConfiguration(XmlNodeList)

在衍生類別中覆寫時,從指定的 XML 載入自訂組態。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Remove(String)

在衍生類別中遭覆寫時,嘗試從快取區中移除項目。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於