Rediger

Del via


EnvelopedSignatureWriter Constructor

Definition

Initializes a new instance of the EnvelopedSignatureWriter class.

public:
 EnvelopedSignatureWriter(System::Xml::XmlWriter ^ innerWriter, System::IdentityModel::Tokens::SigningCredentials ^ signingCredentials, System::String ^ referenceId, System::IdentityModel::Selectors::SecurityTokenSerializer ^ securityTokenSerializer);
public EnvelopedSignatureWriter (System.Xml.XmlWriter innerWriter, System.IdentityModel.Tokens.SigningCredentials signingCredentials, string referenceId, System.IdentityModel.Selectors.SecurityTokenSerializer securityTokenSerializer);
new System.IdentityModel.EnvelopedSignatureWriter : System.Xml.XmlWriter * System.IdentityModel.Tokens.SigningCredentials * string * System.IdentityModel.Selectors.SecurityTokenSerializer -> System.IdentityModel.EnvelopedSignatureWriter
Public Sub New (innerWriter As XmlWriter, signingCredentials As SigningCredentials, referenceId As String, securityTokenSerializer As SecurityTokenSerializer)

Parameters

innerWriter
XmlWriter

The writer to wrap.

signingCredentials
SigningCredentials

The signing credentials to be used to generate the signature.

referenceId
String

The reference ID of the envelope.

securityTokenSerializer
SecurityTokenSerializer

The token serializer to use to serialize the signature KeyInfo.

Exceptions

referenceId is null or empty.

innerWriter is null.

-or-

signingCredentials is null.

-or-

securityTokenSerializer is null.

Applies to