SamlSerializer.LoadAssertion 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从指定的 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。
例外
reader
为 null
注解
SAML 断言包含在 元素中。
ReadToken(XmlReader, SecurityTokenSerializer, SecurityTokenResolver) 方法调用 LoadAssertion(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) 方法来读取 SAML 断言。