Share via


SecurityToken.GetSignedTokenXml Method

Gets an XML representation of the current instance digitally signed by another security token.

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

Usage

'Usage
Dim signingToken As SecurityToken
Dim returnValue As XmlElement
Dim securityToken1 As SecurityToken
returnValue = securityToken1.GetSignedTokenXml(signingToken)

Syntax

'Declaration
Public Overridable Function GetSignedTokenXml( _
    ByVal signingToken As SecurityToken _
) As XmlElement
public virtual XmlElement GetSignedTokenXml(
    SecurityToken signingToken
);
public: XmlElement^ GetSignedTokenXml(
    SecurityToken^ signingToken
);
public XmlElement GetSignedTokenXml(
    SecurityToken signingToken
);
public function GetSignedTokenXml(
     signingToken : SecurityToken
) : XmlElement;

Parameters

Return Value

An System.Xml.XmlElement that contains the current instance digitally signed.

Remarks

Use the GetSignedTokenXml and VerifySignedTokenXml methods when you send and receive SOAP messages containing digitally signed security tokens. When sending a SOAP message, use the GetSignedTokenXml to generate the XML representation of a digitally signed security token. When a SOAP message is received that contains the XML representation of a digitally signed security token, use the VerifySignedTokenXml to verify the signature.

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

SecurityToken Class
Microsoft.Web.Services2.Security.Tokens Namespace

Other Resources

SecurityToken Members