ClaimedMagneticStripeReader.AuthenticateDeviceAsync(Byte[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將裝置放入已驗證的狀態。
public:
virtual IAsyncAction ^ AuthenticateDeviceAsync(Platform::Array <byte> ^ responseToken) = AuthenticateDeviceAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction AuthenticateDeviceAsync(winrt::array_view <byte> const& responseToken);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction AuthenticateDeviceAsync(byte[] responseToken);
function authenticateDeviceAsync(responseToken)
Public Function AuthenticateDeviceAsync (responseToken As Byte()) As IAsyncAction
參數
- responseToken
-
Byte[]
byte[]
緩衝區,其中包含從先前呼叫 RetrieveDeviceAuthenticationDataAsync 方法擷取之挑戰權杖所產生的回應權杖。
傳回
- 屬性
備註
方法僅適用于支援驗證的裝置。
為了驗證裝置,應用程式會呼叫 RetrieveDeviceAuthenticationDataAsync 方法來擷取挑戰權杖。 應用程式通常會將此權杖傳遞至另一個具有共用秘密特殊知識且能夠建立適當回應權杖的實體。 然後,此回應權杖會傳遞至 AuthenticationDeviceAsync 方法,以使用該權杖來驗證驗證要求。