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.

適用於