Show / Hide Table of Contents

ChallengeResponseCommand Constructor

ChallengeResponseCommand(Slot, ChallengeResponseAlgorithm, ReadOnlyMemory<byte>)

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

C#
public ChallengeResponseCommand(Slot slot, ChallengeResponseAlgorithm algorithm, ReadOnlyMemory<byte> challenge)

Parameters

Type Name Description
Slot slot

The OTP slot to issue the challenge.

ChallengeResponseAlgorithm algorithm

The algorithm the YubiKey should use when generating the response.

ReadOnlyMemory<byte> challenge

The challenge to send to the YubiKey. For the YubicoOtp algorithm, the challenge must be exactly 6 bytes. If the algorithm is HmacSha1, the challenge must be 64 bytes, or 0-63 bytes if the HmacLessThan64Bytes is set on this slot's configuration.

In this article
Back to top Generated by DocFX