@Service public class OTPAuthServiceImpl extends Object implements OTPAuthService
| Constructor and Description |
|---|
OTPAuthServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
AuthStatusInfo |
authenticate(AuthRequestDTO authRequestDTO,
String uin,
Map<String,List<IdentityInfoDTO>> idInfo,
String partnerId)
Validates generated OTP via OTP Manager.
|
Map<String,String> |
getOtpKey(String uin,
AuthRequestDTO authReq,
String partnerId)
Gets the s pin.
|
boolean |
isEmpty(String otpVal)
Checks for Null or Empty.
|
boolean |
validateTxnAndIdvid(String txnId,
String uin,
String idType)
Validates Transaction ID and Unique ID.
|
public AuthStatusInfo authenticate(AuthRequestDTO authRequestDTO, String uin, Map<String,List<IdentityInfoDTO>> idInfo, String partnerId) throws IdAuthenticationBusinessException
authenticate in interface AuthServiceauthRequestDTO - the auth request DTOuin - the ref ididInfo - the id infopartnerId - the partner idIdAuthenticationBusinessException - the id authentication business exceptionpublic Map<String,String> getOtpKey(String uin, AuthRequestDTO authReq, String partnerId) throws IdAuthenticationBusinessException
uin - the uinauthReq - the auth reqpartnerId - the partner idIdAuthenticationBusinessException - the id authentication business exceptionpublic boolean validateTxnAndIdvid(String txnId, String uin, String idType) throws IdAuthenticationBusinessException
txnId - the txn ididType - idvid - the idvidIdAuthenticationBusinessException - the id authentication business exceptionpublic boolean isEmpty(String otpVal)
otpVal - - OTP valueCopyright © 2020. All rights reserved.