IUserSecurityStampStore<TUser> Interface

Provides an abstraction for a store which stores a user’s security stamp.

Namespace
Microsoft.AspNetCore.Identity
Assemblies
  • Microsoft.AspNetCore.Identity

Syntax

public interface IUserSecurityStampStore<TUser> : IUserStore<TUser>, IDisposable where TUser : class
interface Microsoft.AspNetCore.Identity.IUserSecurityStampStore<TUser>

Methods

GetSecurityStampAsync(TUser, System.Threading.CancellationToken)

Get the security stamp for the specified <em>user</em>.

Arguments:
  • user (TUser) – The user whose security stamp should be set.
  • cancellationToken (System.Threading.CancellationToken) – The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.
Return type:

System.Threading.Tasks.Task<System.String>

Returns:

The System.Threading.Tasks.Task that represents the asynchronous operation, containing the security stamp for the specified <em>user</em>.

Task<string> GetSecurityStampAsync(TUser user, CancellationToken cancellationToken)
SetSecurityStampAsync(TUser, System.String, System.Threading.CancellationToken)

Sets the provided security <em>stamp</em> for the specified <em>user</em>.

Arguments:
  • user (TUser) – The user whose security stamp should be set.
  • stamp (System.String) – The security stamp to set.
  • cancellationToken (System.Threading.CancellationToken) – The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.
Return type:

System.Threading.Tasks.Task

Returns:

The System.Threading.Tasks.Task that represents the asynchronous operation.

Task SetSecurityStampAsync(TUser user, string stamp, CancellationToken cancellationToken)