Saml2SecurityTokenHandler.CreateSamlSubject(SecurityTokenDescriptor) 方法

定义

为此断言创建 SAML 2.0 主题。

protected:
 virtual System::IdentityModel::Tokens::Saml2Subject ^ CreateSamlSubject(System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual System.IdentityModel.Tokens.Saml2Subject CreateSamlSubject (System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateSamlSubject : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.Saml2Subject
override this.CreateSamlSubject : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.Saml2Subject
Protected Overridable Function CreateSamlSubject (tokenDescriptor As SecurityTokenDescriptor) As Saml2Subject

参数

tokenDescriptor
SecurityTokenDescriptor

为其创建主题的安全标记说明符。

返回

一个表示断言主题的 Saml2Subject

例外

tokenDescriptornull

适用于