Saml2SecurityTokenHandler.CreateAuthenticationStatement Método

Definición

Crea una instrucción de autenticación SAML 2.0 a partir de la información de autenticación 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

Objeto AuthenticationInformation que contiene el estado que se va a encapsular como un Saml2AuthenticationStatement objeto .

tokenDescriptor
SecurityTokenDescriptor

Descriptor de token.

Devoluciones

Saml2AuthenticationStatement que se va a agregar a la aserción que se va a crear o null omitir el AuthenticationInformation objeto (y no crear una instrucción de autenticación SAML 2.0).

Excepciones

tokenDescriptor es null.

O bien

La propiedad Subject de tokenDescriptor es null.

El asunto de tokenDescriptor (la Subject propiedad) contiene notificaciones con un tipo de notificación de AuthenticationInstant o AuthenticationMethod pero no contiene al menos una notificación de cada tipo.

O bien

El método de autenticación especificado por el sujeto del tokenDescriptor no se puede resolver en un URI absoluto.

Se aplica a