SamlStatement.ReadXml 方法

定义

在派生类中重写时,从指定的 XML 读取器读取 SAML 语句。

public:
 abstract void ReadXml(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public abstract 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
Public MustOverride Sub ReadXml (reader As XmlDictionaryReader, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver)

参数

reader
XmlDictionaryReader

读取 SAML 语句的 XmlDictionaryReader

samlSerializer
SamlSerializer

一个 SamlSerializer,它能够读取 SAML 规范中定义的 SAML 语句中的 XML 元素。

keyInfoSerializer
SecurityTokenSerializer

一个 SecurityTokenSerializer,它读取数字签名的 KeyInfo 子句。

outOfBandTokenResolver
SecurityTokenResolver

一个 SecurityTokenResolver,它确定是哪个安全令牌创建了数字签名。

注解

使用 ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) 方法可读取 SAML 语句、验证 XML 以及设置对应于属性 (Attribute) 和元素的相应属性 (Property)。

适用于