Saml2SecurityTokenHandler.CreateAuthenticationStatement(AuthenticationInformation, SecurityTokenDescriptor) Método
Definição
Cria uma instrução de autenticação SAML 2.0 das informações de autenticação especificadas.Creates a SAML 2.0 authentication statement from the specified authentication information.
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 objeto AuthenticationInformation que contém o estado a ser empacotado como um objeto Saml2AuthenticationStatement.An AuthenticationInformation object that contains the state to be wrapped as a Saml2AuthenticationStatement object.
- tokenDescriptor
- SecurityTokenDescriptor
O descritor do token.The token descriptor.
Retornos
Um Saml2AuthenticationStatement para adicionar à declaração que está sendo criada ou null para ignorar o objeto AuthenticationInformation (e não criar uma instrução de autenticação SAML 2.0).A Saml2AuthenticationStatement to add to the assertion being created or null to ignore the AuthenticationInformation object (and not create a SAML 2.0 authentication statement).
Exceções
tokenDescriptor é null.tokenDescriptor is null.
- ou --or-
A propriedade Subject de tokenDescriptor é null.The Subject property of tokenDescriptor is null.
A entidade do tokenDescriptor (a propriedade Subject) contém declarações com um tipo de declaração de AuthenticationInstant ou AuthenticationMethod, mas não contém pelo menos uma declaração de cada tipo.The subject of the tokenDescriptor (the Subject property) contains claims with a claim type of either AuthenticationInstant or AuthenticationMethod but does not contain at least one claim of each type.
- ou --or-
O método de autenticação especificado pela entidade do tokenDescriptor não pode ser resolvido em um URI absoluto.The authentication method specified by the subject of the tokenDescriptor cannot be resolved to an absolute URI.