共用方式為


SamlAssertion.ReadSignature 方法

定義

從 XML 讀取器讀取 SAML 判斷提示的數位簽章。

protected:
 void ReadSignature(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer);
protected void ReadSignature (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver, System.IdentityModel.Tokens.SamlSerializer samlSerializer);
member this.ReadSignature : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver * System.IdentityModel.Tokens.SamlSerializer -> unit
Protected Sub ReadSignature (reader As XmlDictionaryReader, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver, samlSerializer As SamlSerializer)

參數

reader
XmlDictionaryReader

要讀取數位簽章的 XmlDictionaryReader

keyInfoSerializer
SecurityTokenSerializer

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

outOfBandTokenResolver
SecurityTokenResolver

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

samlSerializer
SamlSerializer

SamlSerializer,它能夠讀取在 SAML 規格中定義的 XML 項目。

例外狀況

readernull

-或-

samlSerializernull

-或-

此數位簽章尚未從 SAML 判斷提示讀取。

備註

當呼叫 ReadSignature 方法時,會設定 SigningToken 屬性。

適用於