API Reference
Class
OtpAuthValidationOptions
Validation options for otpauth:// payloads.
Inheritance
- Object
- OtpAuthValidationOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OtpAuthValidationOptions.Strict
Accepted by parameters
- Method OtpAuthValidator.TryValidate
- Method OtpAuthValidator.TryValidate
- Method OtpQrDecoder.TryDecodeStrict
- Method OtpQrDecoder.TryDecodeStrict
Constructors
public OtpAuthValidationOptions() #Inherited Methods
Properties
public Boolean RequireIssuer { get; set; } #Requires issuer to be present.
public Boolean RequireIssuerMatch { get; set; } #Requires issuer to match between label and query when both are present.
public Boolean RequireStandardDigits { get; set; } #Requires digits to be 6 or 8.
public Boolean RequireDefaultPeriod { get; set; } #Requires TOTP period to be 30 seconds.
public Boolean RequireSha1 { get; set; } #Requires SHA1 algorithm.
public Int32 MinSecretBytes { get; set; } #Requires a minimum secret length in bytes.
public Boolean AllowUnknownParameters { get; set; } #Allows unknown query parameters.
public static OtpAuthValidationOptions Strict { get; } #Strict defaults for maximum compatibility.