Język

SecurityStampValidator<TUser> Klasa

Definicja

Zapewnia domyślną implementację funkcji walidacji dla sygnatur zabezpieczeń.

generic <typename TUser>
 where TUser : classpublic ref class SecurityStampValidator : Microsoft::AspNetCore::Identity::ISecurityStampValidator
public class SecurityStampValidator<TUser> : Microsoft.AspNetCore.Identity.ISecurityStampValidator where TUser : class
type SecurityStampValidator<'User (requires 'User : null)> = class
    interface ISecurityStampValidator
Public Class SecurityStampValidator(Of TUser)
Implements ISecurityStampValidator

Parametry typu

TUser

Typ hermetyzuje użytkownika.

Dziedziczenie
SecurityStampValidator<TUser>
Pochodne
Implementuje

Konstruktory

Nazwisko Opis
SecurityStampValidator<TUser>(IOptions<IdentityOptions>, SignInManager<TUser>)

Tworzy nowe wystąpienie klasy SecurityStampValidator<TUser>.

SecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ILoggerFactory)

Tworzy nowe wystąpienie klasy SecurityStampValidator<TUser>.

SecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock, ILoggerFactory)
Przestarzałe.

Tworzy nowe wystąpienie klasy SecurityStampValidator<TUser>.

SecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock)

Tworzy nowe wystąpienie klasy SecurityStampValidator<TUser>.

Właściwości

Nazwisko Opis
Clock
Przestarzałe.

Element ISystemClock.

Logger

Pobiera dane używane do rejestrowania ILogger komunikatów.

Options

Element SecurityStampValidatorOptions.

SignInManager

The SignInManager.

TimeProvider

Element TimeProvider.

Metody

Nazwisko Opis
SecurityStampVerified(TUser, CookieValidatePrincipalContext)

Wywoływana po zweryfikowaniu sygnatury zabezpieczeń.

ValidateAsync(CookieValidatePrincipalContext)

Weryfikuje sygnaturę zabezpieczeń tożsamości jako operację asynchroniczną i ponownie kompiluje tożsamość, jeśli walidacja zakończy się pomyślnie, w przeciwnym razie odrzuca tożsamość.

VerifySecurityStamp(ClaimsPrincipal)

Sprawdza sygnaturę zabezpieczeń podmiotu zabezpieczeń, zwraca pasującego użytkownika, jeśli zakończy się powodzeniem

Dotyczy