UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetAuthenticatorKeyAsync 方法

定义

获取指定 user的验证器密钥。

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GetAuthenticatorKeyAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task<string> GetAuthenticatorKeyAsync (TUser user, System.Threading.CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task<string?> GetAuthenticatorKeyAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member GetAuthenticatorKeyAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetAuthenticatorKeyAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetAuthenticatorKeyAsync (user As TUser, cancellationToken As CancellationToken) As Task(Of String)

参数

user
TUser

应设置其安全标记的用户。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

表示 Task 异步操作的 ,其中包含指定 user的安全标记。

实现

适用于