Interface KycFacade
-
public interface KycFacadeThis class used to integrate with kyc service- Author:
- Sanjay Murali
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthResponseDTOauthenticateIndividual(AuthRequestDTO authRequest, boolean request, String partnerId, String partnerApiKey, ObjectWithMetadata requestWithMetadata)Authenticate individual.AuthResponseDTOauthenticateIndividual(AuthRequestDTO authRequest, boolean request, String partnerId, String partnerApiKey, ObjectWithMetadata requestWithMetadata, boolean markVidConsumed)Authenticate individual.EKycAuthResponseDTOprocessEKycAuth(EkycAuthRequestDTO eKycAuthRequestDTO, AuthResponseDTO authResponseDTO, String partnerId, Map<String,Object> metadata)Process the EKycAuthRequestDTO to integrate with EKycService.KycAuthResponseDTOprocessKycAuth(AuthRequestDTO kycAuthRequestDTO, AuthResponseDTO authResponseDTO, String partnerId, String oidcClientId, Map<String,Object> metadata)Process the KycAuthRequestDTO to integrate with KYCService.KycExchangeResponseDTOprocessKycExchange(KycExchangeRequestDTO kycExchangeRequestDTO, String partnerId, String oidcClientId, Map<String,Object> metadata, ObjectWithMetadata requestWithMetadata)Process the KycExchangeRequestDTO to integrate with KYCService.
-
-
-
Method Detail
-
processEKycAuth
EKycAuthResponseDTO processEKycAuth(@Nonnull EkycAuthRequestDTO eKycAuthRequestDTO, AuthResponseDTO authResponseDTO, String partnerId, Map<String,Object> metadata) throws IdAuthenticationBusinessException
Process 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 IdAuthenticationBusinessException
Process 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 IdAuthenticationBusinessException
Process 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
-
-