UsernameTokenManager.DetectReplay Method
Detects whether the UsernameTokenis being replayed.
Namespace: Microsoft.Web.Services2.Security.Tokens
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.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: Void DetectReplay(
UsernameToken^ token
);
protected void DetectReplay(
UsernameToken token
);
protected function DetectReplay(
token : UsernameToken
);
Parameters
- token
The UsernameToken to detect whether it is being replayed.
Exceptions
Exception type | Condition |
---|---|
System.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 <requireSignature> Element configuration element. Replay detection can be disabled using the <replayDetection> element. For more details, see <requireSignature> 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 Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
UsernameTokenManager Class
Microsoft.Web.Services2.Security.Tokens Namespace