SamlAssertion Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SamlAssertion class.
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. |
Initializes a new instance of the SamlAssertion class.
public:
SamlAssertion();
public SamlAssertion ();
Public Sub New ()
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 |
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.
- 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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: