Initializes an instance of T:Microsoft.IdentityModel.Protocols.XmlSignature.EnvelopedSignatureWriter. The returned writer can be directly used to write the envelope. The signature will be automatically generated when the envelope is completed.
Namespace: Microsoft.IdentityModel.Protocols.XmlSignature
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim innerWriter As XmlWriter
Dim signingCredentials As SigningCredentials
Dim referenceId As String
Dim securityTokenSerializer As SecurityTokenSerializer

Dim instance As New EnvelopedSignatureWriter(innerWriter, signingCredentials, referenceId, securityTokenSerializer)

Syntax

Visual Basic
Public Sub New ( _
		innerWriter As XmlWriter, _
		signingCredentials As SigningCredentials, _
		referenceId As String, _
		securityTokenSerializer As SecurityTokenSerializer _
)
C#
public EnvelopedSignatureWriter (
		XmlWriter innerWriter,
		SigningCredentials signingCredentials,
		string referenceId,
		SecurityTokenSerializer securityTokenSerializer
)
C++
public:
EnvelopedSignatureWriter (
		XmlWriter^ innerWriter, 
		SigningCredentials^ signingCredentials, 
		String^ referenceId, 
		SecurityTokenSerializer^ securityTokenSerializer
)
J#
public EnvelopedSignatureWriter (
		XmlWriter innerWriter, 
		SigningCredentials signingCredentials, 
		String referenceId, 
		SecurityTokenSerializer securityTokenSerializer
)
JScript
public function EnvelopedSignatureWriter (
		innerWriter : XmlWriter, 
		signingCredentials : SigningCredentials, 
		referenceId : String, 
		securityTokenSerializer : SecurityTokenSerializer
)

Parameters

innerWriter

Writer to wrap/

signingCredentials

SigningCredentials to be used to generate the signature.

referenceId

The reference Id of the envelope.

securityTokenSerializer

Exceptions

Exception type Condition
ArgumentNullException

One of he input parameter is null.

ArgumentException

The string 'referenceId' is either null or empty.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also