Table of Contents

TTimeBasedOtp.Verify Method

Overloads

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.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.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.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