Partager via


ClaimedMagneticStripeReader.AuthenticateDeviceAsync(Byte[]) Méthode

Définition

Place l’appareil dans un état authentifié.

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

Paramètres

responseToken

Byte[]

byte[]

Mémoire tampon contenant le jeton de réponse généré à partir du jeton de défi récupéré à partir d’un appel précédent à la méthode RetrieveDeviceAuthenticationDataAsync .

Retours

Attributs

Remarques

La méthode est valide uniquement pour les appareils qui prennent en charge l’authentification.

Pour authentifier un appareil, l’application appelle la méthode RetrieveDeviceAuthenticationDataAsync pour récupérer un jeton de défi. L’application transmet généralement ce jeton à une autre entité qui a une connaissance spéciale d’un secret partagé et est en mesure de créer un jeton de réponse approprié. Ce jeton de réponse est ensuite passé à la méthode AuthenticateDeviceAsync qui l’utilise pour valider la demande d’authentification.

S’applique à