Share via


SecurityTokenReference Class

Represents a reference to a security token in a security header.

Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim securityTokenReference1 As New SecurityTokenReference()

Syntax

'Declaration
Public Class SecurityTokenReference
    Inherits KeyInfoClause
    Implements IXmlElement
public class SecurityTokenReference : KeyInfoClause, IXmlElement
public ref class SecurityTokenReference : KeyInfoClause, IXmlElement
public class SecurityTokenReference extends KeyInfoClause implements IXmlElement
public class SecurityTokenReference extends KeyInfoClause implements IXmlElement

Remarks

Use this class to create a reference to a security token in the security header of a SOAP message. When a SecurityTokenReference object is serialized into an XML representation, a <SecurityTokenReference> element is created. The child elements, which contain the details of the reference, are determined by how the object is serialized. The details can be placed in one of the following elements: <Reference> , <Embedded> , or <KeyIdentifier> . To specify how the details are serialized, use the SecurityTokenReference that takes a SecurityTokenReference.SerializationOptions value, or use the default constructor and set one of the following properties: AbsoluteReference , Embedded , Reference , or RelativeReference .

Inheritance Hierarchy

System.Object
   System.Security.Cryptography.Xml.KeyInfoClause
    Microsoft.Web.Services3.Security.SecurityTokenReference

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

SecurityTokenReference Members
Microsoft.Web.Services3.Security Namespace
GetXml
GetInnerXml
AbsoluteReference
Embedded
KeyIdentifier
Reference
RelativeReference