SamlSecurityTokenHandler.CreateToken Method (SecurityTokenDescriptor)

.NET Framework (current version)
 

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

Exception Condition
ArgumentNullException

tokenDescriptor is null.

.NET Framework
Available since 4.5
Return to top
Show: