Udostępnij przez


Saml2SecurityTokenHandler.CreateAuthenticationStatement Metoda

Definicja

Tworzy instrukcję uwierzytelniania SAML 2.0 na podstawie określonych informacji uwierzytelniania.

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

AuthenticationInformation Obiekt, który zawiera stan, który ma być opakowany jako Saml2AuthenticationStatement obiekt.

tokenDescriptor
SecurityTokenDescriptor

Deskryptor tokenu.

Zwraca

Element Saml2AuthenticationStatement umożliwiający dodanie do tworzonego potwierdzenia lub null zignorowanie AuthenticationInformation obiektu (a nie utworzenie instrukcji uwierzytelniania SAML 2.0).

Wyjątki

tokenDescriptor to null.

-lub-

Właściwość Subject właściwości tokenDescriptor to null.

Podmiot tokenDescriptor ( Subject właściwość) zawiera oświadczenia o typie AuthenticationInstant oświadczenia lub AuthenticationMethod , ale nie zawiera co najmniej jednego oświadczenia każdego typu.

-lub-

Metoda uwierzytelniania określona przez podmiot obiektu tokenDescriptor nie może zostać rozpoznana jako bezwzględny identyfikator URI.

Dotyczy