共用方式為


SamlSerializer.LoadAssertion 方法

定義

從指定的 XML 讀取器讀取 SAML 判斷提示。

public:
 virtual System::IdentityModel::Tokens::SamlAssertion ^ LoadAssertion(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public virtual System.IdentityModel.Tokens.SamlAssertion LoadAssertion (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
abstract member LoadAssertion : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SamlAssertion
override this.LoadAssertion : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SamlAssertion
Public Overridable Function LoadAssertion (reader As XmlDictionaryReader, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver) As SamlAssertion

參數

reader
XmlDictionaryReader

要讀取 SAML 判斷提示的 XmlDictionaryReader

keyInfoSerializer
SecurityTokenSerializer

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

outOfBandTokenResolver
SecurityTokenResolver

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

傳回

表示 SAML 判斷提示的 SamlAssertion

例外狀況

readernull

備註

SAML 判斷提示包含在 <saml:Assertion> 項目中。

ReadToken(XmlReader, SecurityTokenSerializer, SecurityTokenResolver) 方法會呼叫 LoadAssertion(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) 方法來讀取 SAML 判斷提示。

適用於

另請參閱