Partage via


Saml2SecurityTokenHandler.CreateAuthenticationStatement Méthode

Définition

Crée une instruction d'authentification SAML 2.0 à partir des informations d'authentification spécifiées.

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

Paramètres

authInfo
AuthenticationInformation

Un objet AuthenticationInformation qui contient l'état à encapsuler comme objet Saml2AuthenticationStatement.

tokenDescriptor
SecurityTokenDescriptor

Descripteur de jetons.

Retours

Saml2AuthenticationStatement à ajouter à l'assertion en cours de création ou null pour ignorer l'objet de AuthenticationInformation (et ne pas créer une instruction d'authentification SAML 2.0).

Exceptions

tokenDescriptor a la valeur null.

- ou -

La propriété Subject de tokenDescriptor a la valeur null.

L’objet de (tokenDescriptorla Subject propriété) contient des revendications avec un type de revendication ou AuthenticationMethodAuthenticationInstant , mais ne contient pas au moins une revendication de chaque type.

- ou -

La méthode d'authentification spécifiée par le sujet de tokenDescriptor ne peut pas être résolue à un URI absolu.

S’applique à