Show / Hide Table of Contents

ValidateCommand Class

Namespace: Yubico.YubiKey.Oath.Commands Assembly: Yubico.YubiKey.dll

Validates authentication (mutually). The challenge for this comes from the SelectOathResponse. The response computed by performing the correct HMAC function of that challenge with the correct secret. A new challenge is then sent to the application along with the response. The application will then respond with a similar calculation that the host software can verify.

C#
public class ValidateCommand : OathChallengeResponseBaseCommand, IYubiKeyCommand<ValidateResponse>
Inheritance object OathChallengeResponseBaseCommand ValidateCommand
Implements
IYubiKeyCommand<ValidateResponse>

Constructors

Name Description
ValidateCommand(ReadOnlyMemory<byte>, OathApplicationData)

Constructs an instance of the ValidateCommand class.

Properties

Name Description
Application

Gets the YubiKeyApplication to which this command belongs.

CalculatedResponse

Gets and privately sets.

Methods

Name Description
CreateCommandApdu()

Creates a well-formed CommandApdu to send to the YubiKey.

CreateResponseForApdu(ResponseApdu)

Creates the corresponding IYubiKeyResponse implementation for the current command.

In this article
Back to top Generated by DocFX