CreateSecurityTokenReference Method
TOC
Collapse the table of content
Expand the table of content

SamlSecurityTokenHandler.CreateSecurityTokenReference Method (SecurityToken, Boolean)

.NET Framework (current version)
 

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

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override SecurityKeyIdentifierClause CreateSecurityTokenReference(
	SecurityToken token,
	bool attached
)

Parameters

token
Type: System.IdentityModel.Tokens.SecurityToken

The SAML token.

attached
Type: System.Boolean

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

Return Value

Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause

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

Exception Condition
ArgumentNullException

token is null.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft