Condividi tramite


Saml2SecurityTokenHandler.CreateAuthenticationStatement Metodo

Definizione

Crea un'istruzione di autenticazione SAML 2.0 dalle informazioni di autenticazione specificate.

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

Parametri

authInfo
AuthenticationInformation

Oggetto AuthenticationInformation che contiene lo stato a cui eseguire l'incapsulamento come oggetto Saml2AuthenticationStatement .

tokenDescriptor
SecurityTokenDescriptor

Descrittore del token.

Restituisce

Saml2AuthenticationStatement da aggiungere all'asserzione creata o null per ignorare l'oggetto AuthenticationInformation (e non creare un'istruzione di autenticazione SAML 2.0).

Eccezioni

tokenDescriptor è null.

-oppure-

La proprietà Subject di tokenDescriptor è null.

L'oggetto dell'oggetto tokenDescriptor (la Subject proprietà) contiene attestazioni con un tipo di attestazione di AuthenticationInstant o ma AuthenticationMethod non contiene almeno un'attestazione di ogni tipo.

-oppure-

Il metodo di autenticazione specificato dall'oggetto di tokenDescriptor non può essere risolto in un URI assoluto.

Si applica a