Udostępnij za pośrednictwem


Saml2Serializer.WriteAssertion(XmlWriter, Saml2Assertion) Method

Definition

Writes the <Assertion> element.

public virtual void WriteAssertion (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.Saml2.Saml2Assertion assertion);
abstract member WriteAssertion : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml2.Saml2Assertion -> unit
override this.WriteAssertion : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml2.Saml2Assertion -> unit
Public Overridable Sub WriteAssertion (writer As XmlWriter, assertion As Saml2Assertion)

Parameters

writer
XmlWriter

A XmlWriter to serialize the Saml2Assertion.

assertion
Saml2Assertion

The Saml2Assertion to serialize.

Exceptions

if assertion is null.

if assertion.EncryptingCredentials != null.

The SAML2 authentication, attribute, and authorization decision Saml2Statement require a Saml2Subject.

Applies to