Saml2SecurityTokenHandler.CreateAuthenticationStatement Método

Definição

Cria uma declaração de autenticação SAML 2.0 a partir da informação de autenticação especificada.

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

Parâmetros

authInfo
AuthenticationInformation

Um AuthenticationInformation objeto que contém o estado a ser enrolado como um Saml2AuthenticationStatement objeto.

tokenDescriptor
SecurityTokenDescriptor

O descritor do token.

Devoluções

A Saml2AuthenticationStatement para adicionar à asserção que está a ser criada ou null para ignorar o AuthenticationInformation objeto (e não criar uma instrução de autenticação SAML 2.0).

Exceções

tokenDescriptor é null.

-ou-

A Subject propriedade de tokenDescriptor é null.

O sujeito do tokenDescriptor (a Subject propriedade) contém reivindicações com um tipo de reivindicação de ou AuthenticationInstant , AuthenticationMethod mas não contém pelo menos uma reivindicação de cada tipo.

-ou-

O método de autenticação especificado pelo sujeito do tokenDescriptor não pode ser resolvido para um URI absoluto.

Aplica-se a