SetChallengeResponseTimeout Method
SetChallengeResponseTimeout(int)
Sets the timeout on OTP challenge-response operations.
C#
public 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. |
Implements
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | The value of |
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>).