Saml2SecurityTokenHandler.CreateToken Method (SecurityTokenDescriptor)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a security token based on a token descriptor.

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

override CreateToken : 
        tokenDescriptor:SecurityTokenDescriptor -> SecurityToken

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

Exception Condition
ArgumentNullException

tokenDescriptor is null.

.NET Framework
Available since 4.5
Return to top
Show: