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 属性。

适用于