Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SamlSecurityTokenHandler.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
)

Parameters

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 1.1 security token. (The token returned is actually an instance of SamlSecurityToken.)

ExceptionCondition
ArgumentNullException

tokenDescriptor is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft