Show / Hide Table of Contents

ChallengeResponseCommand Class

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

Issues a challenge to the YubiKey. The slot must be configured in challenge-response mode for this command's response to be valid.

C#
public class ChallengeResponseCommand : IYubiKeyCommand<ChallengeResponseResponse>
Inheritance object ChallengeResponseCommand
Implements
IYubiKeyCommand<ChallengeResponseResponse>

Constructors

Name Description
ChallengeResponseCommand(Slot, ChallengeResponseAlgorithm, ReadOnlyMemory<byte>)

Constructs a new instance of the ChallengeResponseCommand class with the challenge and slot information supplied.

Properties

Name Description
Algorithm

The algorithm the YubiKey should use when generating the response.

Application

Gets the YubiKeyApplication (e.g. PIV, OATH, etc.) to which this command applies.

OtpSlot

The OTP slot to issue the challenge.

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