SetChallengeResponseTimeout Method
SetChallengeResponseTimeout(Int32)
Sets the timeout on OTP challenge-response operations.
C#
void SetChallengeResponseTimeout(int seconds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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 |
---|---|
System.ArgumentOutOfRangeException | The value of |
System.InvalidOperationException | The command failed to complete. |
System.NotSupportedException | An error occurred when attempting to connect to the device. |
Remarks
YubiKeys prior to firmware version 5 must use SetLegacyDeviceConfiguration(YubiKeyCapabilities, Byte, Boolean, Int32).
Modifies the value of ChallengeResponseTimeout. This requires the YubiKey's configuration to be unlocked (see ConfigurationLocked and UnlockConfiguration(ReadOnlySpan<Byte>).