Share via


Saml2SecurityTokenHandler.CreateAuthenticationStatement Methode

Definition

Erstellt eine SAML 2.0-Authentifizierungsanweisung aus den angegebenen Authentifizierungsinformationen.

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

Parameter

authInfo
AuthenticationInformation

Ein AuthenticationInformation-Objekt, das den zu umschließenden Zustand als Saml2AuthenticationStatement-Objekt enthält.

tokenDescriptor
SecurityTokenDescriptor

Der Deskriptor des Tokens.

Gibt zurück

Ein Saml2AuthenticationStatement, das der zu erstellenden Assertion hinzugefügt werden soll, oder null, um das AuthenticationInformation-Objekt zu ignorieren (und keine SAML 2.0 Authentifizierungsanweisung zu erstellen).

Ausnahmen

tokenDescriptor ist null.

- oder -

Die Subject-Eigenschaft von tokenDescriptor ist null.

Der Betreff der tokenDescriptor - Subject Eigenschaft enthält Ansprüche mit einem Anspruchstyp von oder AuthenticationInstantAuthenticationMethod , enthält jedoch nicht mindestens einen Anspruch jedes Typs.

- oder -

Die Authentifizierungsmethode, die vom Antragsteller tokenDescriptor angegeben ist, kann nicht in einen absoluten URI aufgelöst werden.

Gilt für: