Compartilhar via


DSigSerializer.WriteSignature(XmlWriter, Signature) Method

Definition

Writes the contents of a Signature as XML conforming to https://www.w3.org/TR/2001/PR-xmldsig-core-20010820/#sec-Signature.

public virtual void WriteSignature (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Xml.Signature signature);
abstract member WriteSignature : System.Xml.XmlWriter * Microsoft.IdentityModel.Xml.Signature -> unit
override this.WriteSignature : System.Xml.XmlWriter * Microsoft.IdentityModel.Xml.Signature -> unit
Public Overridable Sub WriteSignature (writer As XmlWriter, signature As Signature)

Parameters

writer
XmlWriter

the XmlWriter to use.

signature
Signature

the Signatureto write.

Exceptions

if signature is null.

if one of the values in Transforms is null or empty.

Remarks

Assumes the <SignatureValue> has been calculated, no canonicalization or signature calculation is performed.

Applies to