Skip to content

simpleotp.fluent.otpconfigbuilder

Eugene Fox edited this page Sep 18, 2024 · 1 revision

OtpConfigBuilder

Namespace: SimpleOTP.Fluent

Class used to streamline OTP code configuration on client devices.

public static class OtpConfigBuilder

Inheritance ObjectOtpConfigBuilder
Attributes NullableContextAttribute, NullableAttribute

Methods

UseTotp(String, Int32)

Use TOTP configuration with optional counter period.

public static OtpConfig UseTotp(string accountName, int period)

Parameters

accountName String
Account name.

period Int32
Period in seconds.

Returns

OtpConfig
OtpConfig instance.

UseHotp(String, Int64)

Use HOTP configuration with optional counter.

public static OtpConfig UseHotp(string accountName, long counter)

Parameters

accountName String
Account name.

counter Int64
Counter value.

Returns

OtpConfig
OtpConfig instance.

UseApple(String, String, String)

Use TOTP which satisfies Apple's specification requirements.

public static OtpConfig UseApple(string accountName, string issuerName, string issuerDomain)

Parameters

accountName String
Account name.

issuerName String
Issuer/application/service display name.

issuerDomain String
Issuer/application/service domain name.

Returns

OtpConfig
OtpConfig instance.

Clone this wiki locally