Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateToken Method
Collapse the table of content
Expand the table of content

Saml2SecurityTokenHandler.CreateToken Method

.NET Framework 4.6 and 4.5

Creates a security token based on a token descriptor.

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

public override SecurityToken CreateToken(
	SecurityTokenDescriptor tokenDescriptor


Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

The token descriptor from which to create the security token.

Return Value

Type: System.IdentityModel.Tokens.SecurityToken
A SecurityToken that represents the SAML 2.0 security token. (The token returned is actually an instance of Saml2SecurityToken.)


tokenDescriptor is null.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft