SamlSubject.ExtractSubjectKeyClaimSet(SamlSecurityTokenAuthenticator) 方法

定义

使用此类的属性和指定的 SAML 安全令牌验证器获取一个声明集。Gets a set of claims using the properties of this class and the specified SAML security token authenticator.

public:
 virtual System::IdentityModel::Claims::ClaimSet ^ ExtractSubjectKeyClaimSet(System::IdentityModel::Selectors::SamlSecurityTokenAuthenticator ^ samlAuthenticator);
public virtual System.IdentityModel.Claims.ClaimSet ExtractSubjectKeyClaimSet (System.IdentityModel.Selectors.SamlSecurityTokenAuthenticator samlAuthenticator);
abstract member ExtractSubjectKeyClaimSet : System.IdentityModel.Selectors.SamlSecurityTokenAuthenticator -> System.IdentityModel.Claims.ClaimSet
override this.ExtractSubjectKeyClaimSet : System.IdentityModel.Selectors.SamlSecurityTokenAuthenticator -> System.IdentityModel.Claims.ClaimSet
Public Overridable Function ExtractSubjectKeyClaimSet (samlAuthenticator As SamlSecurityTokenAuthenticator) As ClaimSet

参数

samlAuthenticator
SamlSecurityTokenAuthenticator

一个 SamlSecurityTokenAuthenticator,它对 SamlSecurityToken 安全令牌中对应于 <saml:Subject> 元素的部分进行验证。A SamlSecurityTokenAuthenticator that authenticates the portion of a SamlSecurityToken security token that corresponds to the <saml:Subject> element.

返回

ClaimSet

一个 ClaimSet,包含此 SamlSubject 实例所表示的声明集。A ClaimSet that contains the set of claims represented by this SamlSubject instance.

例外

samlAuthenticatornullsamlAuthenticator is null.

注解

使用 ExtractSubjectKeyClaimSet(SamlSecurityTokenAuthenticator) 方法获取与 SamlSecurityToken 安全令牌的标识关联的声明集。Use the ExtractSubjectKeyClaimSet(SamlSecurityTokenAuthenticator) method to get a set of claims associated with the identity of a SamlSecurityToken security token.

适用于