Sprache

SamlSecurityTokenHandler.CreateAttributeStatement Methode

Definition

Erstellt SamlAttributeStatements und fügt sie einer Auflistung hinzu. Überschreiben Sie diese Methode, um eine benutzerdefinierte Implementierung bereitzustellen.

Das Standardverhalten besteht darin, ein neues SamlAttributeStatement für jeden Betreff in der tokenDescriptor.Subject-Auflistung zu erstellen.

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

Parameter

subject
SamlSubject

Das SamlSubject, das in der erstellten SamlAttributeStatement verwendet werden soll.

tokenDescriptor
SecurityTokenDescriptor

Enthält alle anderen Informationen, die in der Tokenausstellung verwendet werden.

Gibt zurück

Samlattributestatement

Ausnahmen

wenn tokenDescriptor null ist.

Gilt für: