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

OtpOptions

Namespace: SimpleOTP.DependencyInjection

Provides options for the One-Time Password service.

public class OtpOptions

Inheritance ObjectOtpOptions
Attributes NullableContextAttribute, NullableAttribute, RequiredMemberAttribute

Properties

Issuer

The name of the issuer.

public string Issuer { get; set; }

Property Value

String

IssuerDomain

The issuer domain.

public string IssuerDomain { get; set; }

Property Value

String

Remarks:

IMPORTANT: Using this property will imply adherence to the Apple specification.

Algorithm

The algorithm to use.

public OtpAlgorithm Algorithm { get; set; }

Property Value

OtpAlgorithm

Digits

The number of digits in the OTP code.

public int Digits { get; set; }

Property Value

Int32

Period

The number of seconds between each OTP code.

public int Period { get; set; }

Property Value

Int32

Type

The type of One-Time Password to generate.

public OtpType Type { get; set; }

Property Value

OtpType

UriFormat

The format of OTP URIs.

public OtpUriFormat UriFormat { get; set; }

Property Value

OtpUriFormat

ToleranceSpan

The tolerance span for the OTP codes validation.

public ToleranceSpan ToleranceSpan { get; set; }

Property Value

ToleranceSpan

CustomProperties

Custom properties to place in OTP URIs.

public NameValueCollection CustomProperties { get; }

Property Value

NameValueCollection

Constructors

OtpOptions()

Caution

Constructors of types with required members are not supported in this version of your compiler.


public OtpOptions()