Compartilhar via


Saml2SecurityTokenHandler.CreateAttributeStatement Method

Definition

protected virtual Microsoft.IdentityModel.Tokens.Saml2.Saml2AttributeStatement CreateAttributeStatement (Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateAttributeStatement : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml2.Saml2AttributeStatement
override this.CreateAttributeStatement : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml2.Saml2AttributeStatement
Protected Overridable Function CreateAttributeStatement (tokenDescriptor As SecurityTokenDescriptor) As Saml2AttributeStatement

Parameters

tokenDescriptor
SecurityTokenDescriptor

The SecurityTokenDescriptor that contains information on building the Saml2AttributeStatement.

Returns

A Saml2AttributeStatement.

Exceptions

if tokenDescriptor is null.

Remarks

This method may return null if the token descriptor does not contain any subject or the subject does not have any claims.

Applies to