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

Un objeto AuthenticationInformation que contiene el estado que se ajustará como objeto Saml2AuthenticationStatement .

tokenDescriptor
SecurityTokenDescriptor

Descriptor de token.

Devoluciones

Saml2AuthenticationStatement que agregar a la aserción que se crea o a null para omitir el objeto de AuthenticationInformation (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 pero AuthenticationMethod no contiene al menos una notificación de cada tipo.

o bien

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

Se aplica a