SamlSecurityTokenHandler.CreateAttributeStatement Method

Definition

Creates a SamlAttributeStatement object from a token descriptor.

protected:
 virtual System::IdentityModel::Tokens::SamlAttributeStatement ^ CreateAttributeStatement(System::IdentityModel::Tokens::SamlSubject ^ samlSubject, System::Security::Claims::ClaimsIdentity ^ subject, System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual System.IdentityModel.Tokens.SamlAttributeStatement CreateAttributeStatement (System.IdentityModel.Tokens.SamlSubject samlSubject, System.Security.Claims.ClaimsIdentity subject, System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateAttributeStatement : System.IdentityModel.Tokens.SamlSubject * System.Security.Claims.ClaimsIdentity * System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.SamlAttributeStatement
override this.CreateAttributeStatement : System.IdentityModel.Tokens.SamlSubject * System.Security.Claims.ClaimsIdentity * System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.SamlAttributeStatement
Protected Overridable Function CreateAttributeStatement (samlSubject As SamlSubject, subject As ClaimsIdentity, tokenDescriptor As SecurityTokenDescriptor) As SamlAttributeStatement

Parameters

samlSubject
SamlSubject

The SamlSubject to use in the SamlAttributeStatement that is created.

subject
ClaimsIdentity

The ClaimsIdentity object that contains claims which will be converted to SAML Attributes.

tokenDescriptor
SecurityTokenDescriptor

The token descriptor.

Returns

A SamlAttributeStatement that contains the converted claims.

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