SamlAdvice.ReadXml 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的 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
可以讀取 KeyInfo
子句的 SecurityTokenSerializer。
- outOfBandTokenResolver
- SecurityTokenResolver
SecurityTokenResolver,會針對包含這個 <saml:Advice>
XML 項目的 SAML 判斷提示,判定建立其數位簽章的安全性權杖。
例外狀況
<saml:Advice>
項目不符合 <saml:Advice>
項目的 XML 結構描述。