语言

SamlAssertion 构造函数

定义

初始化 SamlAssertion 类的新实例。

重载

名称 说明
SamlAssertion()

初始化 SamlAssertion 类的新实例。

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

使用指定的 SAML 断言标识符、断言颁发者、断言的日期和时间、一组处理条件、附加信息和 SAML 语句集合初始化类的新实例 SamlAssertion 。

SamlAssertion()

初始化 SamlAssertion 类的新实例。

public:
 SamlAssertion();
public SamlAssertion();
Public Sub New ()

适用于

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

使用指定的 SAML 断言标识符、断言颁发者、断言的日期和时间、一组处理条件、附加信息和 SAML 语句集合初始化类的新实例 SamlAssertion 。

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))

参数

assertionId
String

断言的标识符。

issuer
String

颁发此 SAML 断言的 SAML 颁发机构。

issueInstant
DateTime

一个 DateTime 指定何时发出 SAML 断言。

samlConditions
SamlConditions

一 SamlConditions 个指定一组条件,评估 SAML 断言的有效性时,可以考虑这些条件。

samlAdvice
SamlAdvice

指定 SamlAdvice SAML 颁发机构提供的其他信息,该信息可在处理 SAML 断言时提供助手。

samlStatements
IEnumerable<SamlStatement>

IEnumerable<T>包含 SAML 语句的类型SamlStatement。

例外

assertionId 是 null。

-或-

assertionId 是 Empty。

-或-

assertionId 不以字母或“_”字符开头。

-或-

issuer 是 null。

-或-

issuer 是 Empty。

-或-

samlStatements 是 null。

-或-

samlStatements 不包含任何元素。

-或-

samlStatements 包含元素 null 。

注解

参数 assertionId 必须以字母或“_”字符开头。

适用于