UseYubiOtp Method
UseYubiOtp(Boolean)
Sets the operation to use the Yubico OTP or HMAC-SHA1 algorithm to calculate the response.
C#
public CalculateChallengeResponse UseYubiOtp(bool setting)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | setting | A langword_csharp_bool specifying whether to use the Yubico OTP or HMAC-SHA1 algorithm. |
Returns
The CalculateChallengeResponse instance
Remarks
There is no default algorithm. You must either call this method with a true parameter, which will configure the YubiKey to use Yubico OTP as the algorithm, or a false parameter, which will configure the YubiKey to use the HMAC-SHA1 algorithm (for both HMAC-SHA1 and TOTP challenges).