SecurityTokenDescriptor.AddAuthenticationClaims Méthode

Définition

Ajoute les revendications d'identification spécifiée au sujet de l'instance actuelle.

Surcharges

AddAuthenticationClaims(String)

Ajoute une revendication pour la méthode d'authentification spécifiée au sujet de l'instance actuelle. Le moment d'authentification est défini sur l'heure actuelle.

AddAuthenticationClaims(String, DateTime)

Ajoute des revendications pour le type et le moment d'authentification spécifiés à l'objet de l'instance actuelle.

AddAuthenticationClaims(String)

Ajoute une revendication pour la méthode d'authentification spécifiée au sujet de l'instance actuelle. Le moment d'authentification est défini sur l'heure actuelle.

public:
 void AddAuthenticationClaims(System::String ^ authType);
public void AddAuthenticationClaims (string authType);
member this.AddAuthenticationClaims : string -> unit
Public Sub AddAuthenticationClaims (authType As String)

Paramètres

authType
String

URI qui spécifie la méthode d'authentification.

Remarques

Un Claim avec un type de revendication de AuthenticationMethod et une valeur de authType et un Claim avec un type de revendication de AuthenticationInstant et une valeur de UtcNow sont ajoutés au ClaimsIdentity spécifié par la Subject propriété .

S’applique à

AddAuthenticationClaims(String, DateTime)

Ajoute des revendications pour le type et le moment d'authentification spécifiés à l'objet de l'instance actuelle.

public:
 void AddAuthenticationClaims(System::String ^ authType, DateTime time);
public void AddAuthenticationClaims (string authType, DateTime time);
member this.AddAuthenticationClaims : string * DateTime -> unit
Public Sub AddAuthenticationClaims (authType As String, time As DateTime)

Paramètres

authType
String

URI qui spécifie la méthode d'authentification.

time
DateTime

Moment d'authentification au format UTC. Si l'heure n'est pas en UTC, elle est convertie en UTC.

Remarques

Un Claim avec un type de revendication de AuthenticationMethod et une valeur de authType et un Claim avec un type de revendication de AuthenticationInstant et une valeur de time sont ajoutés au ClaimsIdentity spécifié par la Subject propriété .

S’applique à