SecurityTokenHandler.DetectReplayedToken(SecurityToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, throws an exception if the specified token is detected as being replayed.
protected:
virtual void DetectReplayedToken(System::IdentityModel::Tokens::SecurityToken ^ token);
protected virtual void DetectReplayedToken (System.IdentityModel.Tokens.SecurityToken token);
abstract member DetectReplayedToken : System.IdentityModel.Tokens.SecurityToken -> unit
override this.DetectReplayedToken : System.IdentityModel.Tokens.SecurityToken -> unit
Protected Overridable Sub DetectReplayedToken (token As SecurityToken)
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
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: