共用方式為


SamlAssertion.ReadXml 方法

定義

從指定的 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

要讀取 SAML 判斷提示的 XmlDictionaryReader

samlSerializer
SamlSerializer

SamlSerializer,它能夠從 SAML 判斷提示中讀取 SAML 規格所定義的 XML 項目。

keyInfoSerializer
SecurityTokenSerializer

SecurityTokenSerializer,它會讀取數位簽章的 KeyInfo 子句。

outOfBandTokenResolver
SecurityTokenResolver

SecurityTokenResolver,它會判定建立數位簽章的安全性權杖。

例外狀況

readernull

-或-

samlSerializernull

之前已呼叫過 ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) 方法,並且 SAML 判斷提示已完成數位簽署。

reader 沒有參考符合 SAML 1.1 規格的 SAML 判斷提示。

適用於