Sdílet prostřednictvím


Saml2SecurityTokenHandler.CreateAuthenticationStatement Metoda

Definice

Vytvoří ověřovací příkaz SAML 2.0 ze zadaných ověřovacích informací.

protected:
 virtual System::IdentityModel::Tokens::Saml2AuthenticationStatement ^ CreateAuthenticationStatement(System::Security::Claims::AuthenticationInformation ^ authInfo, System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual System.IdentityModel.Tokens.Saml2AuthenticationStatement CreateAuthenticationStatement (System.Security.Claims.AuthenticationInformation authInfo, System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateAuthenticationStatement : System.Security.Claims.AuthenticationInformation * System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.Saml2AuthenticationStatement
override this.CreateAuthenticationStatement : System.Security.Claims.AuthenticationInformation * System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.Saml2AuthenticationStatement
Protected Overridable Function CreateAuthenticationStatement (authInfo As AuthenticationInformation, tokenDescriptor As SecurityTokenDescriptor) As Saml2AuthenticationStatement

Parametry

authInfo
AuthenticationInformation

Objekt AuthenticationInformation , který obsahuje stav, který má být zabalen jako Saml2AuthenticationStatement objekt.

tokenDescriptor
SecurityTokenDescriptor

Popisovač tokenu.

Návraty

A Saml2AuthenticationStatement k přidání do vytvářeného kontrolního výrazu nebo null k ignorování objektu AuthenticationInformation (a ne k vytvoření ověřovacího příkazu SAML 2.0).

Výjimky

tokenDescriptor je null.

-nebo-

Vlastnost SubjecttokenDescriptor je null.

Předmět tokenDescriptor vlastnosti ( Subject vlastnost) obsahuje deklarace identity s typem deklarace identity buď AuthenticationInstant nebo AuthenticationMethod , ale neobsahuje alespoň jednu deklaraci identity každého typu.

-nebo-

Metodu ověřování určenou předmětem objektu tokenDescriptor nelze přeložit na absolutní identifikátor URI.

Platí pro