Export (0) Print
Expand All
Expand Minimize

SamlSecurityTokenHandler.CreateAuthenticationStatement Method

.NET Framework 4.5

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.

ExceptionCondition
ArgumentNullException

samlSubject is null.

-or-

tokenDescriptor is null.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft