SamlAdvice.ReadXml 方法

定义

使用指定的 XML 读取器读取 <saml:Advice> XML 元素。

public:
 virtual void ReadXml(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public virtual void ReadXml (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
abstract member ReadXml : System.Xml.XmlDictionaryReader * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> unit
override this.ReadXml : System.Xml.XmlDictionaryReader * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> unit
Public Overridable Sub ReadXml (reader As XmlDictionaryReader, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver)

参数

reader
XmlDictionaryReader

一个用于读取 XmlDictionaryReader XML 元素的 <saml:Advice>

samlSerializer
SamlSerializer

一个 SamlSerializer,它能够读取 SAML 断言中已在 SAML 规范内定义的 XML 元素。

keyInfoSerializer
SecurityTokenSerializer

一个 SecurityTokenSerializer,它能够读取 KeyInfo 子句。

outOfBandTokenResolver
SecurityTokenResolver

一个 SecurityTokenResolver,它确定为包含此 <saml:Advice> XML 元素的 SAML 断言创建数字签名的安全令牌。

例外

readernull

- 或 -

samlSerializernull

<saml:Advice> 元素不符合 <saml:Advice> 元素的 XML 架构。

适用于