共用方式為


SamlSerializer.LoadCondition 方法

定義

使用指定的 XML 讀取器,讀取在評量 SAML 判斷提示之有效性時必須加以考量的條件。

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

參數

reader
XmlDictionaryReader

要讀取 SAML 條件的 XmlDictionaryReader

keyInfoSerializer
SecurityTokenSerializer

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

outOfBandTokenResolver
SecurityTokenResolver

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

傳回

SamlCondition,它會指定必須在評量 SAML 判斷提示之有效性時加以考量的條件。

例外狀況

readernull

備註

當應用程式定義本身的條件集合時 (因為 <saml:Condition> 項目是個擴充點,所以可以這樣處理),就需要使用瞭解如何讀取這些條件的序列化程式。 為了建立可以讀取自訂屬性的序列化程式,此時會從 SamlSerializer 衍生類別,並覆寫 LoadCondition(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) 方法。

適用於

另請參閱