Saml2SecurityTokenHandler.CreateSamlSubject 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 SAML 2.0 subject for the assertion.

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

protected virtual Saml2Subject CreateSamlSubject(
	SecurityTokenDescriptor tokenDescriptor
)

Parameters

tokenDescriptor
Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

The security token descriptor from which to create the subject.

Return Value

Type: System.IdentityModel.Tokens.Saml2Subject

A Saml2Subject that represents the subject of the assertion.

Exception Condition
ArgumentNullException

tokenDescriptor is null.

.NET Framework
Available since 4.5
Return to top
Show: