Expand Minimize

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
)

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

ExceptionCondition
ArgumentNullException

tokenDescriptor is null.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft