Syntax
Otp
verifyOtp
(
String
otp
,
long
otpId
,
long
callerId
) throws OtpValidationException
Parameters
-
otp –
the value that is compared against the value that is stored in the DB and was sent out
-
otpId –
the internal ID of the OTP that was returned when the OTP was created
-
callerId –
the caller ID of the service caller
Returns
upon success the Otp with the receiver and the refernceId that were stored when the OTP was created are returned. Other fields of the Otp are not guaranteed to be set.
Exceptions
-
OtpValidationException –
is thrown in case the validation failed
Usage
upon success the Otp with the receiver and the refernceId that were stored when the OTP was created are returned. Other fields of the Otp are not guaranteed to be set.