SamlAssertion.ReadSignature 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 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 項目。
例外狀況
備註
當呼叫 ReadSignature 方法時,會設定 SigningToken 屬性。