Saml2SecurityTokenHandler.ResolveSecurityKeys 方法

定义

解析在 SecurityKey中引用的 Saml2Assertion 集合。

protected:
 virtual System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Tokens::SecurityKey ^> ^ ResolveSecurityKeys(System::IdentityModel::Tokens::Saml2Assertion ^ assertion, System::IdentityModel::Selectors::SecurityTokenResolver ^ resolver);
protected virtual System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Tokens.SecurityKey> ResolveSecurityKeys (System.IdentityModel.Tokens.Saml2Assertion assertion, System.IdentityModel.Selectors.SecurityTokenResolver resolver);
abstract member ResolveSecurityKeys : System.IdentityModel.Tokens.Saml2Assertion * System.IdentityModel.Selectors.SecurityTokenResolver -> System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Tokens.SecurityKey>
override this.ResolveSecurityKeys : System.IdentityModel.Tokens.Saml2Assertion * System.IdentityModel.Selectors.SecurityTokenResolver -> System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Tokens.SecurityKey>
Protected Overridable Function ResolveSecurityKeys (assertion As Saml2Assertion, resolver As SecurityTokenResolver) As ReadOnlyCollection(Of SecurityKey)

参数

assertion
Saml2Assertion

要处理的 Saml2Assertion

resolver
SecurityTokenResolver

在解析 SecurityTokenResolver 对象中使用的 SecurityKey

返回

包含键的 SecurityKey 类型的的集合。

例外

assertionnull

处理程序不能解析键。

适用于