SamlAttributeStatement.ReadXml 方法

定义

从指定的 XML 读取器读取 SAML 属性语句。

public:
 override void ReadXml(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public override void ReadXml (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
override this.ReadXml : System.Xml.XmlDictionaryReader * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> unit
Public Overrides 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,它确定是哪个安全令牌创建了数字签名。

例外

readernull

- 或 -

samlSerializernull

reader 引用不包含 <saml:Subject> 元素的 XML 元素。

- 或 -

reader 引用一个 XML 元素,该元素包含的 <saml:Attribute> 元素不具有属性值。

注解

ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) 方法设置 AttributesSamlSubject 属性。

适用于