@Component public class OTPManager extends Object
| Constructor and Description |
|---|
OTPManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
sendOtp(OtpRequestDTO otpRequestDTO,
String userIdForSendOtp,
String userIdTypeForSendOtp,
Map<String,String> valueMap)
Generate OTP with information of
MediaType and OTP generation
time-out. |
boolean |
validateOtp(String pinValue,
String otpKey)
Validate method for OTP Validation.
|
public boolean sendOtp(OtpRequestDTO otpRequestDTO, String userIdForSendOtp, String userIdTypeForSendOtp, Map<String,String> valueMap) throws IdAuthenticationBusinessException
MediaType and OTP generation
time-out.otpRequestDTO - the otp request DTOuin - the uinvalueMap - the value mapIdAuthenticationBusinessException - the id authentication business
exceptionpublic boolean validateOtp(String pinValue, String otpKey) throws IdAuthenticationBusinessException
pinValue - the pin valueotpKey - the otp keyIdAuthenticationBusinessException - the id authentication business
exceptionCopyright © 2020. All rights reserved.