SamlAssertion.ReadXml 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从指定的 XML 读取器读取 SAML 断言。
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,它用来读取 SAML 断言。
- samlSerializer
- SamlSerializer
一个 SamlSerializer,它能够读取 SAML 断言中已在 SAML 规范内定义的 XML 元素。
- keyInfoSerializer
- SecurityTokenSerializer
一个 SecurityTokenSerializer,它读取数字签名的 KeyInfo
子句。
- outOfBandTokenResolver
- SecurityTokenResolver
一个 SecurityTokenResolver,它确定是哪个安全令牌创建了数字签名。
例外
先前已经调用过 ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) 方法且 SAML 断言已进行数字签名。
reader
不引用遵循 SAML 1.1 规范的 SAML 断言。