Share via


Nonce Class

Provides a random value for use with elements within a security header.

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim size As Integer
Dim nonce1 As New Nonce(size)

Syntax

'Declaration
Public Class Nonce
    Implements IXmlElement
public class Nonce : IXmlElement
public ref class Nonce : public IXmlElement
public class Nonce implements IXmlElement
public class Nonce implements IXmlElement

Remarks

A nonce provides a mechanism for a sender to associate an arbitrary binary data into a message. A nonce is generated from cryptographic random number generators.

For more information, see Web Services Securities Addendum, version 1.0, at https://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnglobspec/html/ws-security-addendum.asp

Remarks

Inheritance Hierarchy

System.Object
  Microsoft.Web.Services2.Security.Nonce

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

Microsoft.Web.Services2.Security Namespace

Other Resources

Nonce Members