Редагувати

Поділитися через


TokenReplayCache Class

Definition

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
Inheritance
TokenReplayCache
Implements

Remarks

When implemented, the cache should purge tokens on a scheduled time interval. 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.

Constructors

TokenReplayCache()

Called from constructors in derived classes to initialize the TokenReplayCache class.

Methods

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.

(Inherited from Object)
Get(String)

When overridden in a derived class, attempts to get the specified entry.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadCustomConfiguration(XmlNodeList)

When overridden in a derived class, loads custom configuration from the specified XML.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from 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.

(Inherited from Object)

Applies to