OtpBuilder
Namespace: SimpleOTP.Fluent
Class used to streamline OTP code generation on client devices.
Inheritance Object → OtpBuilder
Attributes NullableContextAttribute, NullableAttribute
Methods
UseTotp(Int32)
Use TOTP generator with optional counter period.
Parameters
period Int32
Period in seconds.
Returns
Otp
Otp instance.
UseHotp(Int64)
Use HOTP generator with optional counter value.
Parameters
counter Int64
Counter value.
Returns
Otp
Otp instance.
FromConfig(OtpConfig)
Creates Otp instance from OtpConfig object.
Parameters
config OtpConfig
OtpConfig object.
Returns
Otp
Otp instance.