Show / Hide Table of Contents

SetChallengeResponseTimeout Method

SetChallengeResponseTimeout(int)

Sets the timeout on OTP challenge-response operations.

C#
void SetChallengeResponseTimeout(int seconds)

Parameters

Type Name Description
int seconds

The length of the timeout in seconds. The value must be in the range 0-255, where 0 resets the value to its default.

Exceptions

Type Condition
ArgumentOutOfRangeException

The value of seconds must be in the range 0-255.

InvalidOperationException

The command failed to complete.

NotSupportedException

An error occurred when attempting to connect to the device.

Remarks

YubiKeys prior to firmware version 5 must use SetLegacyDeviceConfiguration(YubiKeyCapabilities, byte, bool, int).

Modifies the value of ChallengeResponseTimeout. This requires the YubiKey's configuration to be unlocked (see ConfigurationLocked and UnlockConfiguration(ReadOnlySpan<byte>).

See Also

SetDeviceInfoCommand
In this article
Back to top Generated by DocFX