Rediger

Del via


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();
public SamlAssertion ();
Public Sub New ()

Applies to

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(System::String ^ assertionId, System::String ^ issuer, DateTime issueInstant, System::IdentityModel::Tokens::SamlConditions ^ samlConditions, System::IdentityModel::Tokens::SamlAdvice ^ samlAdvice, System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SamlStatement ^> ^ samlStatements);
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);
new System.IdentityModel.Tokens.SamlAssertion : string * string * DateTime * System.IdentityModel.Tokens.SamlConditions * System.IdentityModel.Tokens.SamlAdvice * seq<System.IdentityModel.Tokens.SamlStatement> -> System.IdentityModel.Tokens.SamlAssertion
Public Sub New (assertionId As String, issuer As String, issueInstant As DateTime, samlConditions As SamlConditions, samlAdvice As SamlAdvice, samlStatements As IEnumerable(Of SamlStatement))

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