共用方式為


SamlSerializer.LoadAdvice 方法

定義

使用指定的 XML 讀取器,從 SAML 判斷提示的 <saml:Advice> 項目中讀取 SAML 授權單位提供的其他資訊。

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

參數

reader
XmlDictionaryReader

XmlDictionaryReader,它會讀取 SAML 授權單位提供的其他資訊。

keyInfoSerializer
SecurityTokenSerializer

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

outOfBandTokenResolver
SecurityTokenResolver

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

傳回

SamlAdvice,其中包含 SAML 授權單位在 SAML 判斷提示的 <saml:Advice> 項目中所提供的其他資訊。

例外狀況

readernull

備註

SAML 判斷提示中的 <saml:Advice> 項目是 SAML 權杖的擴充點。 為了建立可以讀取自訂屬性的序列化程式,此時會從 SamlSerializer 衍生類別,並覆寫 LoadAdvice(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) 方法。

適用於

另請參閱