SamlSecurityTokenHandler.CreateAssertion Method (String, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>)

.NET Framework (current version)
 

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
)

Parameters

issuer
Type: System.String

The issuer of the assertion.

conditions
Type: System.IdentityModel.Tokens.SamlConditions

The SamlConditions to add to the assertion.

advice
Type: System.IdentityModel.Tokens.SamlAdvice

The SamlAdvice to add to the assertion.

statements
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
Available since 4.5
Return to top
Show: