SamlAssertion Constructors

Definition

Initializes a new instance of the SamlAssertion class.

Overloads

SamlAssertion()

Initializes a new instance of the SamlAssertion class.

SamlAssertion(String, String, DateTime, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>)

Initializes a new instance of the SamlAssertion class using the specified SAML assertion identifier, issuer of the assertion, the date and time when the assertion was issued, a set of processing conditions, additional information, and a collection of SAML statements.

SamlAssertion()

Initializes a new instance of the SamlAssertion class.

public SamlAssertion ();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SamlAssertion(String, String, DateTime, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>)

Initializes a new instance of the SamlAssertion class using the specified SAML assertion identifier, issuer of the assertion, the date and time when the assertion was issued, a set of processing conditions, additional information, and a collection of SAML statements.

public SamlAssertion (string assertionId, string issuer, DateTime issueInstant, System.IdentityModel.Tokens.SamlConditions samlConditions, System.IdentityModel.Tokens.SamlAdvice samlAdvice, System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SamlStatement> samlStatements);

Parameters

assertionId
String

The identifier for the assertion.

issuer
String

The SAML authority that issued this SAML assertion.

issueInstant
DateTime

A DateTime that specifies when the SAML assertion was issued.

samlConditions
SamlConditions

A SamlConditions that specifies a set of conditions that may be taken into account when assessing the validity of the SAML assertion.

samlAdvice
SamlAdvice

A SamlAdvice that specifies additional information supplied by the SAML authority that can aide in the processing of the SAML assertion.

samlStatements
IEnumerable<SamlStatement>

An IEnumerable<T> of type SamlStatement that contain SAML statements.

Exceptions

assertionId is null.

-or-

assertionId is Empty.

-or-

assertionId does not start with a letter or the "_" character.

-or-

issuer is null.

-or-

issuer is Empty.

-or-

samlStatements is null.

-or-

samlStatements does not contain any elements.

-or-

samlStatements contains a null element.

Remarks

The assertionId parameter must start with a letter or the "_" character.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1