SamlSerializer.LoadAssertion 方法

定义

从指定的 XML 读取器读取 SAML 断言。

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

参数

reader
XmlDictionaryReader

一个读取 SAML 断言的 XmlDictionaryReader

keyInfoSerializer
SecurityTokenSerializer

一个 SecurityTokenSerializer,它读取数字签名的 KeyInfo 子句。

outOfBandTokenResolver
SecurityTokenResolver

一个 SecurityTokenResolver,它确定是哪个安全令牌创建了数字签名。

返回

一个表示 SAML 断言的 SamlAssertion

例外

readernull

注解

SAML 断言包含在 元素中。

ReadToken(XmlReader, SecurityTokenSerializer, SecurityTokenResolver) 方法调用 LoadAssertion(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) 方法来读取 SAML 断言。

适用于

另请参阅