Class OTPServiceImpl
- java.lang.Object
-
- io.mosip.authentication.common.service.impl.OTPServiceImpl
-
- All Implemented Interfaces:
OTPService
@Service public class OTPServiceImpl extends Object implements OTPService
Service implementation of OtpTriggerService.- Author:
- Rakesh Roshan, Dinesh Karuppiah.T
-
-
Constructor Summary
Constructors Constructor Description OTPServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OtpResponseDTO
generateOtp(OtpRequestDTO otpRequestDto, String partnerId)
Generate OTP, store the OTP request details for success/failure.
-
-
-
Method Detail
-
generateOtp
public OtpResponseDTO generateOtp(OtpRequestDTO otpRequestDto, String partnerId) throws IdAuthenticationBusinessException
Generate OTP, store the OTP request details for success/failure. And send OTP notification by sms(on mobile)/mail(on email-id).- Specified by:
generateOtp
in interfaceOTPService
- Parameters:
otpRequestDto
- the otp request dto- Returns:
- otpResponseDTO
- Throws:
IdAuthenticationBusinessException
- the id authentication business exception
-
-