Search Results for

    Show / Hide Table of Contents

    TTimeBasedOtp.Verify Method

    Overloads

    • TTimeBasedOtp.Verify(Int64)
    • TTimeBasedOtp.Verify(Int64, Int64)
    • TTimeBasedOtp.Verify(TDateTime, Int64, Boolean)
    • TTimeBasedOtp.Verify(TDateTime, Int64, Int64, Boolean)

    TTimeBasedOtp.Verify(Int64)

    Verifies the provided OTP value based on the current time.

    Syntax

    Unit: Sphinx.Otp

    function TTimeBasedOtp.Verify(Value: Int64): Boolean; overload;

    Parameters

    <-> Parameter Type Description
    Value Int64 The OTP value to verify.

    Returns

    True if the OTP is valid, otherwise false.

    See also

    • TTimeBasedOtp

    TTimeBasedOtp.Verify(Int64, Int64)

    Verifies the provided OTP value based on the current time and returns the matched time step.

    Syntax

    Unit: Sphinx.Otp

    function TTimeBasedOtp.Verify(Value: Int64; var MatchedTimeStep: Int64): Boolean; overload;

    Parameters

    <-> Parameter Type Description
    Value Int64 The OTP value to verify.
    var MatchedTimeStep Int64 The matched time step if the OTP is valid.

    Returns

    True if the OTP is valid, otherwise false.

    See also

    • TTimeBasedOtp

    TTimeBasedOtp.Verify(TDateTime, Int64, Boolean)

    Verifies the provided OTP value for a specific DateTime.

    Syntax

    Unit: Sphinx.Otp

    function TTimeBasedOtp.Verify(DateTime: TDateTime; Value: Int64; InputIsUTC: Boolean = False): Boolean; overload;

    Parameters

    <-> Parameter Type Description
    DateTime TDateTime The DateTime for which to verify the OTP.
    Value Int64 The OTP value to verify.
    InputIsUTC Boolean Optional: Default value is False

    Indicates if the provided DateTime is in UTC.

    Returns

    True if the OTP is valid, otherwise false.

    See also

    • TTimeBasedOtp

    TTimeBasedOtp.Verify(TDateTime, Int64, Int64, Boolean)

    Verifies the provided OTP value for a specific DateTime and returns the matched time step.

    Syntax

    Unit: Sphinx.Otp

    function TTimeBasedOtp.Verify(DateTime: TDateTime; Value: Int64; var MatchedTimeStep: Int64; InputIsUTC: Boolean = False): Boolean; overload;

    Parameters

    <-> Parameter Type Description
    DateTime TDateTime The DateTime for which to verify the OTP.
    Value Int64 The OTP value to verify.
    var MatchedTimeStep Int64 The matched time step if the OTP is valid.
    InputIsUTC Boolean Optional: Default value is False

    Indicates if the provided DateTime is in UTC.

    Returns

    True if the OTP is valid, otherwise false.

    See also

    • TTimeBasedOtp
    In This Article
    Back to top TMS Sphinx v1.15
    © 2021 - 2025 tmssoftware.com