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 StringbuildKycExchangeResponse(String subject, Map<String,List<IdentityInfoDTO>> idInfo, List<String> consentedAttributes, List<String> consentedLocales, String idVid, KycExchangeRequestDTO kycExchangeRequestDTO)StringgenerateAndSaveKycToken(String idHash, String authToken, String oidcClientId, String requestTime, String tokenGenerationTime, String reqTransactionId)booleanisKycTokenExpire(LocalDateTime tokenIssuedDateTime, String kycToken)EKycResponseDTOretrieveKycInfo(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:
retrieveKycInfoin 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:
generateAndSaveKycTokenin interfaceKycService- Throws:
IdAuthenticationBusinessException
-
isKycTokenExpire
public boolean isKycTokenExpire(LocalDateTime tokenIssuedDateTime, String kycToken) throws IdAuthenticationBusinessException
- Specified by:
isKycTokenExpirein interfaceKycService- Throws:
IdAuthenticationBusinessException
-
buildKycExchangeResponse
public String buildKycExchangeResponse(String subject, Map<String,List<IdentityInfoDTO>> idInfo, List<String> consentedAttributes, List<String> consentedLocales, String idVid, KycExchangeRequestDTO kycExchangeRequestDTO) throws IdAuthenticationBusinessException
- Specified by:
buildKycExchangeResponsein interfaceKycService- Throws:
IdAuthenticationBusinessException
-
-