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 di cui eseguire il wrapping come Saml2AuthenticationStatement oggetto .

tokenDescriptor
SecurityTokenDescriptor

Descrittore di token.

Valori restituiti

Oggetto 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