语言

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)

适用于