ClaimedMagneticStripeReader.AuthenticateDeviceAsync(Byte[]) ClaimedMagneticStripeReader.AuthenticateDeviceAsync(Byte[]) ClaimedMagneticStripeReader.AuthenticateDeviceAsync(Byte[]) ClaimedMagneticStripeReader.AuthenticateDeviceAsync(Byte[]) ClaimedMagneticStripeReader.AuthenticateDeviceAsync(Byte[]) Method

Definition

Puts the device into an authenticated state.

public : IAsyncAction AuthenticateDeviceAsync(Byte[] responseToken)
IAsyncAction AuthenticateDeviceAsync(Byte[] responseToken) const;
public IAsyncAction AuthenticateDeviceAsync(Byte[] responseToken)
Public Function AuthenticateDeviceAsync(responseToken As Byte[]) As IAsyncAction
Windows.Devices.PointOfService.ClaimedMagneticStripeReader.authenticateDeviceAsync(responseToken).done( /* Your success and error handlers */ );

Parameters

responseToken
Byte[] Byte[] Byte[]

A buffer containing the response token generated from the challenge token retrieved from a previous call to the RetrieveDeviceAuthenticationDataAsync method.

Returns

Remarks

The method is only valid for devices that support authentication.

To authenticate a device, the application calls the RetrieveDeviceAuthenticationDataAsync method to retrieve a challenge token. The application typically passes this token to another entity that has special knowledge of a shared secret and is able to create a proper response token. This response token is then passed into the AuthenticateDeviceAsync method that uses it to validate the authentication request.