Export (0) Print
Expand All
Expand Minimize

SamlSecurityTokenHandler.CreateAssertion Method

.NET Framework 4.5

Creates a SamlAssertion object by using the specified issuer, conditions, advice and statements. You can override this method to customize the parameters used to create the assertion.

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

protected virtual SamlAssertion CreateAssertion(
	string issuer,
	SamlConditions conditions,
	SamlAdvice advice,
	IEnumerable<SamlStatement> statements


Type: System.String

The issuer of the assertion.

Type: System.IdentityModel.Tokens.SamlConditions

The SamlConditions to add to the assertion.

Type: System.IdentityModel.Tokens.SamlAdvice

The SamlAdvice to add to the assertion.

Type: System.Collections.Generic.IEnumerable<SamlStatement>

The collection of SamlStatement to add to the assertion.

Return Value

Type: System.IdentityModel.Tokens.SamlAssertion
The SAML assertion that was created.

A unique random id is created for the assertion and the AssertionId property is set to this value. The IssueInstant is set to UtcNow.

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

© 2014 Microsoft