語言

SamlSecurityTokenHandler.CreateAttributeStatement 方法

定義

建立 SamlAttributeStatements 並將其加入集合。 覆寫此方法以提供自訂實作。

預設行為是為 tokenDescriptor.Subjects 集合中的每個主體建立新的 SamlAttributeStatement。

protected virtual Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement CreateAttributeStatement(Microsoft.IdentityModel.Tokens.Saml.SamlSubject subject, Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateAttributeStatement : Microsoft.IdentityModel.Tokens.Saml.SamlSubject * Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement
override this.CreateAttributeStatement : Microsoft.IdentityModel.Tokens.Saml.SamlSubject * Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement
Protected Overridable Function CreateAttributeStatement (subject As SamlSubject, tokenDescriptor As SecurityTokenDescriptor) As SamlAttributeStatement

參數

subject
SamlSubject

SamlSubject 用於 SamlAttributeStatement 中所建立的

tokenDescriptor
SecurityTokenDescriptor

包含代幣發行中使用的所有其他資訊。

傳回

SamlAttributeStatement

例外狀況

若 tokenDescriptor 為零。

適用於