SecurityStampValidator<TUser> Class

Definition

Provides default implementation of validation functions for security stamps.

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

Type Parameters

TUser

The type encapsulating a user.

Inheritance
SecurityStampValidator<TUser>
Derived
Implements

Constructors

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

Creates a new instance of SecurityStampValidator<TUser>.

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

Creates a new instance of SecurityStampValidator<TUser>.

SecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock, ILoggerFactory)
Obsolete.

Creates a new instance of SecurityStampValidator<TUser>.

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

Creates a new instance of SecurityStampValidator<TUser>.

Properties

Clock
Obsolete.

The ISystemClock.

Logger

Gets the ILogger used to log messages.

Options

The SecurityStampValidatorOptions.

SignInManager

The SignInManager.

TimeProvider

The TimeProvider.

Methods

SecurityStampVerified(TUser, CookieValidatePrincipalContext)

Called when the security stamp has been verified.

ValidateAsync(CookieValidatePrincipalContext)

Validates a security stamp of an identity as an asynchronous operation, and rebuilds the identity if the validation succeeds, otherwise rejects the identity.

VerifySecurityStamp(ClaimsPrincipal)

Verifies the principal's security stamp, returns the matching user if successful

Applies to