Edit

Share via


SamlSecurityTokenHandler.CreateSecurityTokenReference Method

Definition

Creates the security token reference when the token is not attached to the message.

C#
public override System.IdentityModel.Tokens.SecurityKeyIdentifierClause CreateSecurityTokenReference(System.IdentityModel.Tokens.SecurityToken token, bool attached);

Parameters

token
SecurityToken

The SAML token.

attached
Boolean

A value that indicates whether an attached or unattached reference should be created.

Returns

A SecurityKeyIdentifierClause that represents the token reference. (An instance of SamlAssertionKeyIdentifierClause is actually returned.)

Exceptions

token is null.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1