SamlSecurityTokenHandler.CreateAuthenticationStatement Method (SamlSubject, AuthenticationInformation, 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 1.1 authentication statement from the specified authentication information.

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

protected virtual SamlAuthenticationStatement CreateAuthenticationStatement(
	SamlSubject samlSubject,
	AuthenticationInformation authInfo,
	SecurityTokenDescriptor tokenDescriptor
)

Parameters

samlSubject
Type: System.IdentityModel.Tokens.SamlSubject

The SamlSubject of the statement.

authInfo
Type: System.Security.Claims.AuthenticationInformation

The AuthenticationInformation from which to generate the SAML authentication statement.

tokenDescriptor
Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

Contains all the other information that is used in token issuance.

Return Value

Type: System.IdentityModel.Tokens.SamlAuthenticationStatement

The SAML authentication statement that was created.

Exception Condition
ArgumentNullException

samlSubject is null.

-or-

tokenDescriptor is null.

.NET Framework
Available since 4.5
Return to top
Show: