TokenReplayCache Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

The abstract base class that defines methods for a cache used to detect replayed tokens.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

System::Object
  System.IdentityModel.Tokens::TokenReplayCache

public ref class TokenReplayCache abstract : ICustomIdentityConfiguration

NameDescription
System_CAPS_protmethodTokenReplayCache()

Called from constructors in derived classes to initialize the TokenReplayCacheclass.

NameDescription
System_CAPS_pubmethodAddOrUpdate(String^, SecurityToken^, DateTime)

When overridden in a derived class, attempts to add a new entry or update and existing entry.

System_CAPS_pubmethodContains(String^)

When overridden in a derived class, returns a value that indicates whether a matching entry exists in the cache.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGet(String^)

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

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodLoadCustomConfiguration(XmlNodeList^)

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

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(String^)

When overridden in a derived class, attempts to remove an entry from the cache.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 4.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: