SamlSecurityTokenHandler.CreateAttributeStatement(SamlSubject, ClaimsIdentity, SecurityTokenDescriptor) 方法
定义
从标记说明符创建 SamlAttributeStatement 对象。Creates a SamlAttributeStatement object from a token descriptor.
protected:
virtual System::IdentityModel::Tokens::SamlAttributeStatement ^ CreateAttributeStatement(System::IdentityModel::Tokens::SamlSubject ^ samlSubject, System::Security::Claims::ClaimsIdentity ^ subject, System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual System.IdentityModel.Tokens.SamlAttributeStatement CreateAttributeStatement (System.IdentityModel.Tokens.SamlSubject samlSubject, System.Security.Claims.ClaimsIdentity subject, System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateAttributeStatement : System.IdentityModel.Tokens.SamlSubject * System.Security.Claims.ClaimsIdentity * System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.SamlAttributeStatement
override this.CreateAttributeStatement : System.IdentityModel.Tokens.SamlSubject * System.Security.Claims.ClaimsIdentity * System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.SamlAttributeStatement
Protected Overridable Function CreateAttributeStatement (samlSubject As SamlSubject, subject As ClaimsIdentity, tokenDescriptor As SecurityTokenDescriptor) As SamlAttributeStatement
参数
- samlSubject
- SamlSubject
用于所创建的 SamlSubject 中的 SamlAttributeStatement。The SamlSubject to use in the SamlAttributeStatement that is created.
- subject
- ClaimsIdentity
包含将要被转换为 SAML 特性的声明的 ClaimsIdentity 对象。The ClaimsIdentity object that contains claims which will be converted to SAML Attributes.
- tokenDescriptor
- SecurityTokenDescriptor
标记描述符。The token descriptor.
返回
SamlAttributeStatement 包含转换的声明。A SamlAttributeStatement that contains the converted claims.
注解
null如果标记描述符不包含任何使用者或使用者没有任何声明,则此方法可能返回。This method may return null if the token descriptor does not contain any subject or the subject does not have any claims.