SamlSecurityTokenHandler.CreateAssertion Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
SamlAssertion Tworzy obiekt przy użyciu określonego wystawcy, warunków, porad i instrukcji. Tę metodę można zastąpić, aby dostosować parametry użyte do utworzenia asercji.
protected:
virtual System::IdentityModel::Tokens::SamlAssertion ^ CreateAssertion(System::String ^ issuer, System::IdentityModel::Tokens::SamlConditions ^ conditions, System::IdentityModel::Tokens::SamlAdvice ^ advice, System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SamlStatement ^> ^ statements);
protected virtual System.IdentityModel.Tokens.SamlAssertion CreateAssertion(string issuer, System.IdentityModel.Tokens.SamlConditions conditions, System.IdentityModel.Tokens.SamlAdvice advice, System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SamlStatement> statements);
abstract member CreateAssertion : string * System.IdentityModel.Tokens.SamlConditions * System.IdentityModel.Tokens.SamlAdvice * seq<System.IdentityModel.Tokens.SamlStatement> -> System.IdentityModel.Tokens.SamlAssertion
override this.CreateAssertion : string * System.IdentityModel.Tokens.SamlConditions * System.IdentityModel.Tokens.SamlAdvice * seq<System.IdentityModel.Tokens.SamlStatement> -> System.IdentityModel.Tokens.SamlAssertion
Protected Overridable Function CreateAssertion (issuer As String, conditions As SamlConditions, advice As SamlAdvice, statements As IEnumerable(Of SamlStatement)) As SamlAssertion
Parametry
- issuer
- String
Wystawca potwierdzenia.
- conditions
- SamlConditions
Element SamlConditions , który ma zostać dodany do potwierdzenia.
- advice
- SamlAdvice
Element SamlAdvice , który ma zostać dodany do potwierdzenia.
- statements
- IEnumerable<SamlStatement>
Kolekcja , która SamlStatement ma zostać dodana do asercji.
Zwraca
Utworzono asercję SAML.
Uwagi
Dla asercji jest tworzony unikatowy losowy identyfikator, a AssertionId właściwość jest ustawiona na tę wartość. IssueInstant jest ustawiony na UtcNow.