Show / Hide Table of Contents

UseYubiOtp Method

UseYubiOtp(bool)

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
bool setting

A bool specifying whether to use the Yubico OTP or HMAC-SHA1 algorithm.

Returns

CalculateChallengeResponse

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).

In this article
Back to top Generated by DocFX