SecurityTokenHandler.DetectReplayedToken(SecurityToken) Method

Definition

When overridden in a derived class, throws an exception if the specified token is detected as being replayed.

C#
protected virtual void DetectReplayedToken(System.IdentityModel.Tokens.SecurityToken token);

Parameters

token
SecurityToken

The token to check for replay.

Remarks

The default implementation does nothing.

Derived classes should throw a SecurityTokenReplayDetectedException if the token has already been used.

Windows Identity Foundation (WIF) provides the TokenReplayCache class from which replay caches may be derived and the <tokenReplayCache> configuration element, which can be used to configure the replay cache used by token handlers in an application; however, the exact implementation of the DetectReplayedToken method is up to the designer of the derived class.

Applies to

Продукт Версії
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1