TTimeBasedOtp Class
Derived class for generating time-based OTP (One-Time Password).
Syntax
Unit: Sphinx.Otp
TTimeBasedOtp = class(TCustomOtp);
Constructors
Name | Description |
---|---|
Create | Initializes a new instance of the TTimeBasedOtp class. |
Methods
Name | Description |
---|---|
Calculate | Overloaded Calculate Calculate(TDateTime, Boolean) |
Verify | Overloaded Verify(Int64) Verify(Int64, Int64) Verify(TDateTime, Int64, Boolean) Verify(TDateTime, Int64, Int64, Boolean) |
RemainingSeconds | Overloaded RemainingSeconds RemainingSeconds(TDateTime, Boolean) |
Format | Formats the provided OTP value as a string. |
Properties
Name | Description |
---|---|
TimeStep | Gets or sets the time step in seconds for TOTP generation. Default is 30 seconds. |