Språk

SamlSecurityTokenHandler.CreateAttributeStatement Metod

Definition

Skapar SamlAttributeStatements och lägger till dem i en samling. Åsidosätt den här metoden för att tillhandahålla en anpassad implementering.

Standardbeteendet är att skapa en ny SamlAttributeStatement för varje ämne i samlingen tokenDescriptor.Subjects.

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

Parametrar

subject
SamlSubject

SamlSubject som ska användas i SamlAttributeStatement som skapas.

tokenDescriptor
SecurityTokenDescriptor

Innehåller all annan information som används i tokenutfärding.

Returer

SamlAttributeStatement

Undantag

om tokenDescriptor är null.

Gäller för