TokenReplayCache 类
定义
定义用于检测重播标记的缓存的方法的抽象基类。The abstract base class that defines methods for a cache used to detect replayed tokens.
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
- 实现
注解
实现时,缓存应按计划的时间间隔清除令牌。When implemented, the cache should purge tokens on a scheduled time interval. AddOrUpdate方法将安全令牌与密钥和过期时间相关联。The AddOrUpdate method associates a security token with a key and an expiration time. 可用于在缓存中搜索令牌或删除缓存中的令牌。The can be used to search the cache for the token or to remove the token from the cache. 过期时间指示应从缓存中清除令牌的时间。The expiration time indicates the time at which the token should be purged from the cache.
构造函数
| TokenReplayCache() |
从派生类中的构造函数中调用,用于初始化 TokenReplayCache 类。Called from constructors in derived classes to initialize the TokenReplayCache class. |
方法
| AddOrUpdate(String, SecurityToken, DateTime) |
当在派生类中重写时,尝试添加新词条或更新和现有词条。When overridden in a derived class, attempts to add a new entry or update and existing entry. |
| Contains(String) |
当在派生类中重写时,将返回指示匹配词条是否存在于缓冲中的值。When overridden in a derived class, returns a value that indicates whether a matching entry exists in the cache. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| Get(String) |
在派生类中重写时,尝试获取指定的输入。When overridden in a derived class, attempts to get the specified entry. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| LoadCustomConfiguration(XmlNodeList) |
在派生类中重写时,将从指定 XML 中加载自定义配置。When overridden in a derived class, loads custom configuration from the specified XML. |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Remove(String) |
在派生类中重写时,尝试从缓存中移除词条。When overridden in a derived class, attempts to remove an entry from the cache. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |