UsernameTokenManager.DetectReplay Method
Detects whether the UsernameToken is being replayed.
Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Public Class usernameTokenManagerImplementation
Inherits UsernameTokenManager
Protected Overrides Sub DetectReplay(token As UsernameToken)
MyBase.DetectReplay(token)
End Sub
End Class
Syntax
'Declaration
Protected Overridable Sub DetectReplay( _
ByVal token As UsernameToken _
)
protected virtual void DetectReplay(
UsernameToken token
);
protected:
virtual void DetectReplay(
UsernameToken^ token
);
protected virtual void DetectReplay(
UsernameToken token
);
protected function DetectReplay(
token : UsernameToken
) : Void;
Parameters
- token
The UsernameToken to detect whether it is being replayed.
Exceptions
Exception type | Condition |
---|---|
Exception | token is being replayed. |
Remarks
An exception is thrown if the UsernameToken is being replayed within the window of time specified in the application domain's <replayDetection> Element configuration element. Replay detection can be disabled using the <replayDetection> element. For more details, see <replayDetection> Element.
When interoperating with other operating systems, the <UsernameToken> element must have the <Nonce> and <Created> elements in the SOAP message. WSE always adds these elements to the SOAP message.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
UsernameTokenManager Class
UsernameTokenManager Members
Microsoft.Web.Services3.Security.Tokens Namespace