IUserSecurityStampStore<TUser> Interface

Summary

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

Syntax

public interface IUserSecurityStampStore<TUser> : IUserStore<TUser>, IDisposable where TUser : class

GitHub

View on GitHub

interface Microsoft.AspNet.Identity.IUserSecurityStampStore<TUser>

Methods

GetSecurityStampAsync(TUser, System.Threading.CancellationToken)

Get the security stamp for the specified user, as an asynchronous operation.

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 <see cref=”T:System.Threading.Tasks.Task” /> that represents the asynchronous operation, containing the security stamp for the specified <paramref name=”user” />.

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

Sets the provided security stamp for the specified user, as an asynchronous operation.

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 <see cref=”T:System.Threading.Tasks.Task” /> that represents the asynchronous operation.

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