Interface KycService


  • public interface KycService
    This interface is used to retrieve Kyc information of individual
    Author:
    Sanjay Murali
    • Method Detail

      • retrieveKycInfo

        EKycResponseDTO retrieveKycInfo​(List<String> eKycTypeAttributes,
                                        Set<String> langCodes,
                                        Map<String,​List<IdentityInfoDTO>> identityInfo)
                                 throws IdAuthenticationBusinessException
        Method used to retrieve the KYC information as per the policy
        Parameters:
        uin - the individualId of the Resident
        eKycTypeAttributes - the policy described for partner
        secLangCode - - secondary language code to be sent if details need
        identityInfo - the information contains personal information of the resident
        Returns:
        the kycResponseDTO consists of the KYC Information of the resident
        Throws:
        IdAuthenticationBusinessException - the id authentication business exception
      • generateAndSaveKycToken

        String generateAndSaveKycToken​(String idHash,
                                       String authToken,
                                       String oidcClientId,
                                       String requestTime,
                                       String tokenGenerationTime,
                                       String reqTransactionId)
                                throws IdAuthenticationBusinessException
        Method used to generate the KYC Token after successful authentication and store the kyc token details in DB.
        Parameters:
        idHash - Id Hash of the inputted Id
        authToken - Partner specific User Token
        oidcClientId - OIDC Client Id
        requestTime - Auth Request Time
        tokenGenerationTime - Token Generation Time
        reqTransactionId - Request Transaction Id
        Returns:
        the String generated Kyc Token
        Throws:
        IdAuthenticationBusinessException - the id authentication business exception