Interface KycFacade
public interface KycFacade
This class used to integrate with kyc service
- Author:
- Sanjay Murali
-
Method Summary
Modifier and TypeMethodDescriptionauthenticateIndividual(AuthRequestDTO authRequest, boolean request, String partnerId, String partnerApiKey, ObjectWithMetadata requestWithMetadata) Authenticate individual.authenticateIndividual(AuthRequestDTO authRequest, boolean request, String partnerId, String partnerApiKey, ObjectWithMetadata requestWithMetadata, boolean markVidConsumed) Authenticate individual.processEKycAuth(EkycAuthRequestDTO eKycAuthRequestDTO, AuthResponseDTO authResponseDTO, String partnerId, Map<String, Object> metadata) Process the EKycAuthRequestDTO to integrate with EKycService.processKycAuth(AuthRequestDTO kycAuthRequestDTO, AuthResponseDTO authResponseDTO, String partnerId, String oidcClientId, Map<String, Object> metadata) Process the KycAuthRequestDTO to integrate with KYCService.processKycExchange(KycExchangeRequestDTO kycExchangeRequestDTO, String partnerId, String oidcClientId, Map<String, Object> metadata, ObjectWithMetadata requestWithMetadata) Process the KycExchangeRequestDTO to integrate with KYCService.
-
Method Details
-
processEKycAuth
EKycAuthResponseDTO processEKycAuth(@Nonnull EkycAuthRequestDTO eKycAuthRequestDTO, AuthResponseDTO authResponseDTO, String partnerId, Map<String, Object> metadata) throws IdAuthenticationBusinessExceptionProcess the EKycAuthRequestDTO to integrate with EKycService.- Parameters:
eKycAuthRequestDTO- is DTO of KycAuthRequestDTOauthResponseDTO- the auth response DTOpartnerId- the partner idmetadata- the metadata- Returns:
- the kyc auth response DTO
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
authenticateIndividual
AuthResponseDTO authenticateIndividual(AuthRequestDTO authRequest, boolean request, String partnerId, String partnerApiKey, ObjectWithMetadata requestWithMetadata) throws IdAuthenticationBusinessException, IdAuthenticationDaoException Authenticate individual.- Parameters:
authRequest- the auth requestrequest- the requestpartnerId- the partner id- Returns:
- the auth response DTO
- Throws:
IdAuthenticationBusinessException- the id authentication business exceptionIdAuthenticationDaoException- the id authentication dao exception
-
authenticateIndividual
AuthResponseDTO authenticateIndividual(AuthRequestDTO authRequest, boolean request, String partnerId, String partnerApiKey, ObjectWithMetadata requestWithMetadata, boolean markVidConsumed) throws IdAuthenticationBusinessException, IdAuthenticationDaoException Authenticate individual.- Parameters:
authRequest- the auth requestrequest- the requestpartnerId- the partner idpartnerApiKey- the partner api key idrequestWithMetadata- the request object with metadatamarkVidConsumed- flag to mark id/vid consumed.- Returns:
- the auth response DTO
- Throws:
IdAuthenticationBusinessException- the id authentication business exceptionIdAuthenticationDaoException- the id authentication dao exception
-
processKycAuth
KycAuthResponseDTO processKycAuth(@Nonnull AuthRequestDTO kycAuthRequestDTO, AuthResponseDTO authResponseDTO, String partnerId, String oidcClientId, Map<String, Object> metadata) throws IdAuthenticationBusinessExceptionProcess the KycAuthRequestDTO to integrate with KYCService.- Parameters:
kycAuthRequestDTO- is DTO of KycAuthRequestDTOauthResponseDTO- the auth response DTOpartnerId- the partner idmetadata- the metadata- Returns:
- the kyc auth response DTO
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
processKycExchange
KycExchangeResponseDTO processKycExchange(KycExchangeRequestDTO kycExchangeRequestDTO, String partnerId, String oidcClientId, Map<String, Object> metadata, ObjectWithMetadata requestWithMetadata) throws IdAuthenticationBusinessExceptionProcess the KycExchangeRequestDTO to integrate with KYCService.- Parameters:
kycExchangeRequestDTO- is DTO of KycExchangeRequestDTOpartnerId- the partner idoidcClientId- the client idmetadata- the metadatarequestWithMetadata- the request with metadata- Returns:
- the kyc auth response DTO
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-