SecurityTokenHandler.DetectReplayedToken(SecurityToken) Método

Definição

Quando substituído em uma classe derivada, gera uma exceção se o token especificado é detectado como sendo reproduzido.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)

Parâmetros

token
SecurityToken

O token a ser verificado para reprodução.The token to check for replay.

Comentários

A implementação padrão não faz nada.The default implementation does nothing.

Classes derivadas devem lançar um SecurityTokenReplayDetectedException se o token já tiver sido usado.Derived classes should throw a SecurityTokenReplayDetectedException if the token has already been used.

O Windows Identity Foundation (WIF) fornece a TokenReplayCache classe da qual os caches de reprodução podem ser derivados e o elemento de configuração < tokenReplayCache > , que pode ser usado para configurar o cache de reprodução usado por manipuladores de token em um aplicativo; no entanto, a implementação exata do DetectReplayedToken método é até o designer da classe derivada.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.

Aplica-se a