ValidateCommand Class
Namespace: Yubico.YubiKey.Oath.Commands Assembly: Yubico.YubiKey.dllValidates 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>
Implements
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. |