1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00
1
simpleotp.fluent.otpbuilder
Eugene Fox edited this page 2024-09-18 16:16:09 +03:00

OtpBuilder

Namespace: SimpleOTP.Fluent

Class used to streamline OTP code generation on client devices.

public static class OtpBuilder

Inheritance ObjectOtpBuilder
Attributes NullableContextAttribute, NullableAttribute

Methods

UseTotp(Int32)

Use TOTP generator with optional counter period.

public static Otp UseTotp(int period)

Parameters

period Int32
Period in seconds.

Returns

Otp
Otp instance.

UseHotp(Int64)

Use HOTP generator with optional counter value.

public static Otp UseHotp(long counter)

Parameters

counter Int64
Counter value.

Returns

Otp
Otp instance.

FromConfig(OtpConfig)

Creates Otp instance from OtpConfig object.

public static Otp FromConfig(OtpConfig config)

Parameters

config OtpConfig
OtpConfig object.

Returns

Otp
Otp instance.