verifyCustomerOtp(String, long, int, long, long) method

Verifies if the provided OTP matches the one stored in the DB.

Syntax

boolean verifyCustomerOtp ( String otp , long customerId , int otpType , long referenceId , long callerId ) throws OtpValidationException

Parameters

Returns

true when the otp matched, false when the otp did not match.

Exceptions

Usage

In case the OTP in the DB already expired, was not found, or the threshold of failed verifications has been exceeded an

OtpValidationException

is thrown.

true when the otp matched, false when the otp did not match.