Class KycServiceImpl
- java.lang.Object
-
- io.mosip.authentication.service.kyc.impl.KycServiceImpl
-
- All Implemented Interfaces:
KycService
@Service public class KycServiceImpl extends Object implements KycService
The implementation of Kyc Authentication service which retrieves the identity information of the individual id and construct the KYC information.- Author:
- Sanjay Murali
-
-
Constructor Summary
Constructors Constructor Description KycServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
buildKycExchangeResponse(String subject, Map<String,List<IdentityInfoDTO>> idInfo, List<String> consentedAttributes, List<String> consentedLocales, String idVid)
String
generateAndSaveKycToken(String idHash, String authToken, String oidcClientId, String requestTime, String tokenGenerationTime, String reqTransactionId)
boolean
isKycTokenExpire(LocalDateTime tokenIssuedDateTime, String kycToken)
EKycResponseDTO
retrieveKycInfo(List<String> allowedkycAttributes, Set<String> langCodes, Map<String,List<IdentityInfoDTO>> identityInfo)
Retrieve kyc info.
-
-
-
Method Detail
-
retrieveKycInfo
public EKycResponseDTO retrieveKycInfo(List<String> allowedkycAttributes, Set<String> langCodes, Map<String,List<IdentityInfoDTO>> identityInfo) throws IdAuthenticationBusinessException
Retrieve kyc info.- Specified by:
retrieveKycInfo
in interfaceKycService
- Parameters:
allowedkycAttributes
- the allowedkyc attributeslangCodes
- the lang codesidentityInfo
- the identity info- Returns:
- the kyc response DTO
- Throws:
IdAuthenticationBusinessException
- the id authentication business exception
-
generateAndSaveKycToken
public String generateAndSaveKycToken(String idHash, String authToken, String oidcClientId, String requestTime, String tokenGenerationTime, String reqTransactionId) throws IdAuthenticationBusinessException
- Specified by:
generateAndSaveKycToken
in interfaceKycService
- Throws:
IdAuthenticationBusinessException
-
isKycTokenExpire
public boolean isKycTokenExpire(LocalDateTime tokenIssuedDateTime, String kycToken) throws IdAuthenticationBusinessException
- Specified by:
isKycTokenExpire
in interfaceKycService
- Throws:
IdAuthenticationBusinessException
-
buildKycExchangeResponse
public String buildKycExchangeResponse(String subject, Map<String,List<IdentityInfoDTO>> idInfo, List<String> consentedAttributes, List<String> consentedLocales, String idVid) throws IdAuthenticationBusinessException
- Specified by:
buildKycExchangeResponse
in interfaceKycService
- Throws:
IdAuthenticationBusinessException
-
-