SamlAssertion.WriteXml 方法

定义

将 SAML 断言作为 <saml:Assertion> 元素写入指定的 XML 编写器。

public:
 virtual void WriteXml(System::Xml::XmlDictionaryWriter ^ writer, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer);
public virtual void WriteXml (System.Xml.XmlDictionaryWriter writer, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer);
abstract member WriteXml : System.Xml.XmlDictionaryWriter * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer -> unit
override this.WriteXml : System.Xml.XmlDictionaryWriter * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer -> unit
Public Overridable Sub WriteXml (writer As XmlDictionaryWriter, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer)

参数

writer
XmlDictionaryWriter

一个 XmlDictionaryWriter,它用来写入 SAML 断言。

samlSerializer
SamlSerializer

一个 SamlSerializer,它能够将 SamlAssertion 中的对象写为 XML。

keyInfoSerializer
SecurityTokenSerializer

一个 SecurityTokenSerializer,它能够写入 KeyInfo 子句。

例外

writernull

- 或 -

samlSerializernull

SamlAssertion 的配置方式使得在将它序列化为 XML 时,将导致不符合 SAML v1.1 规范。

适用于