DetectReplayedToken Method

SecurityTokenHandler.DetectReplayedToken Method (SecurityToken)

.NET Framework (current version)
 

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

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

protected virtual void DetectReplayedToken(
	SecurityToken token
)

Parameters

token
Type: System.IdentityModel.Tokens.SecurityToken

The token to check for replay.

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.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft