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. |
System.ReadOnlyMemory<System.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. |