Saml2SecurityTokenHandler.CreateStatements Method (SecurityTokenDescriptor)

.NET Framework (current version)
 

Creates SAML 2.0 statements to be included in the assertion.

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

protected virtual IEnumerable<Saml2Statement> CreateStatements(
	SecurityTokenDescriptor tokenDescriptor
)

Parameters

tokenDescriptor
Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

The token descriptor from which to create the statements.

Return Value

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

An enumeration of Saml2Statement that contains the statements.

Exception Condition
ArgumentNullException

tokenDescriptor is null.

Statements are not required in a SAML 2.0 assertion. This method may return an empty collection.

.NET Framework
Available since 4.5
Return to top
Show: