Share via


Saml2SecurityTokenHandler.CreateStatements Method

Definition

Overloads

CreateStatements(SecurityTokenDescriptor)

Creates an IEnumerable<T> of Saml2Statement to be included in the assertion.

CreateStatements(SecurityTokenDescriptor, AuthenticationInformation)

Creates an IEnumerable<T> of Saml2Statement to be included in the assertion.

CreateStatements(SecurityTokenDescriptor)

Creates an IEnumerable<T> of Saml2Statement to be included in the assertion.

protected virtual System.Collections.Generic.IEnumerable<Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement> CreateStatements (Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateStatements : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> seq<Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement>
override this.CreateStatements : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> seq<Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement>
Protected Overridable Function CreateStatements (tokenDescriptor As SecurityTokenDescriptor) As IEnumerable(Of Saml2Statement)

Parameters

tokenDescriptor
SecurityTokenDescriptor

The SecurityTokenDescriptor that contains information on creating the Saml2Statement.

Returns

An enumeration of Saml2Statements.

Exceptions

if tokenDescriptor is null.

Remarks

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

Applies to

CreateStatements(SecurityTokenDescriptor, AuthenticationInformation)

Creates an IEnumerable<T> of Saml2Statement to be included in the assertion.

protected virtual System.Collections.Generic.IEnumerable<Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement> CreateStatements (Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor, Microsoft.IdentityModel.Tokens.Saml2.AuthenticationInformation authenticationInformation);
abstract member CreateStatements : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor * Microsoft.IdentityModel.Tokens.Saml2.AuthenticationInformation -> seq<Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement>
override this.CreateStatements : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor * Microsoft.IdentityModel.Tokens.Saml2.AuthenticationInformation -> seq<Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement>
Protected Overridable Function CreateStatements (tokenDescriptor As SecurityTokenDescriptor, authenticationInformation As AuthenticationInformation) As IEnumerable(Of Saml2Statement)

Parameters

tokenDescriptor
SecurityTokenDescriptor

The SecurityTokenDescriptor that contains information on creating the Saml2Statement.

authenticationInformation
AuthenticationInformation

additional information used when creating a Saml2AuthenticationStatement.

Returns

An enumeration of Saml2Statements.

Exceptions

if tokenDescriptor is null.

Remarks

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

Applies to