Freigeben über


SamlSecurityTokenHandler.CreateAttributeStatement Method

Definition

Creates SamlAttributeStatements and adds them to a collection. Override this method to provide a custom implementation.

Default behavior is to create a new SamlAttributeStatement for each Subject in the tokenDescriptor.Subjects collection.

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

Parameters

subject
SamlSubject

The SamlSubject to use in the SamlAttributeStatement that are created.

tokenDescriptor
SecurityTokenDescriptor

Contains all the other information that is used in token issuance.

Returns

SamlAttributeStatement

Exceptions

if tokenDescriptor is null.

Applies to