Class IdServiceImpl
- java.lang.Object
-
- io.mosip.authentication.common.service.impl.IdServiceImpl
-
-
Constructor Summary
Constructors Constructor Description IdServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getBioData(Map<String,Object> identity)
Gets the bio data.Map<String,Object>
getDemoData(Map<String,Object> identity)
Gets the demo data.Map<String,Object>
getIdByUin(String uin, boolean isBio)
Map<String,Object>
getIdByVid(String vid, boolean isBio)
Map<String,Object>
getIdentity(String id, boolean isBio)
Map<String,Object>
getIdentity(String id, boolean isBio, IdType idType)
Fetch data from Id Repo based on Individual's UIN / VID value and all UIN.Map<String,List<IdentityInfoDTO>>
getIdInfo(Map<String,Object> idResponseDTO)
Fetch data from Identity info value based on Identity response.String
getToken(Map<String,Object> idResDTO)
Map<String,Object>
processIdType(String idvIdType, String idvId, boolean isBio)
Process the IdType and validates the Idtype and upon validation reference Id is returned in AuthRequestDTO.void
saveAutnTxn(AutnTxn authTxn)
Store entry in Auth_txn table for all authentications.void
updateVIDstatus(String vid)
Update VID dstatus.
-
-
-
Method Detail
-
getIdByUin
public Map<String,Object> getIdByUin(String uin, boolean isBio) throws IdAuthenticationBusinessException
- Specified by:
getIdByUin
in interfaceIdService<AutnTxn>
- Throws:
IdAuthenticationBusinessException
-
getIdByVid
public Map<String,Object> getIdByVid(String vid, boolean isBio) throws IdAuthenticationBusinessException
- Specified by:
getIdByVid
in interfaceIdService<AutnTxn>
- Throws:
IdAuthenticationBusinessException
-
processIdType
public Map<String,Object> processIdType(String idvIdType, String idvId, boolean isBio) throws IdAuthenticationBusinessException
Process the IdType and validates the Idtype and upon validation reference Id is returned in AuthRequestDTO.- Specified by:
processIdType
in interfaceIdService<AutnTxn>
- Parameters:
idvIdType
- idTypeidvId
- id-numberisBio
- the is bio- Returns:
- map map
- Throws:
IdAuthenticationBusinessException
- the id authentication business exception
-
saveAutnTxn
public void saveAutnTxn(AutnTxn authTxn) throws IdAuthenticationBusinessException
Store entry in Auth_txn table for all authentications.- Specified by:
saveAutnTxn
in interfaceIdService<AutnTxn>
- Parameters:
authTxn
- the auth txn- Throws:
IdAuthenticationBusinessException
- the id authentication business exception
-
getIdInfo
public Map<String,List<IdentityInfoDTO>> getIdInfo(Map<String,Object> idResponseDTO) throws IdAuthenticationBusinessException
Fetch data from Identity info value based on Identity response.- Specified by:
getIdInfo
in interfaceIdService<AutnTxn>
- Parameters:
idResponseDTO
- the id response DTO- Returns:
- the id info
- Throws:
IdAuthenticationBusinessException
- the id authentication business exception
-
getDemoData
public Map<String,Object> getDemoData(Map<String,Object> identity)
Gets the demo data.- Specified by:
getDemoData
in interfaceIdService<AutnTxn>
- Parameters:
identity
- the identity- Returns:
- the demo data
-
getBioData
public Map<String,Object> getBioData(Map<String,Object> identity)
Gets the bio data.- Specified by:
getBioData
in interfaceIdService<AutnTxn>
- Parameters:
identity
- the identity- Returns:
- the bio data
-
getIdentity
public Map<String,Object> getIdentity(String id, boolean isBio) throws IdAuthenticationBusinessException
-
getIdentity
public Map<String,Object> getIdentity(String id, boolean isBio, IdType idType) throws IdAuthenticationBusinessException
Fetch data from Id Repo based on Individual's UIN / VID value and all UIN.- Parameters:
id
- the uinisBio
- the is bio- Returns:
- the idenity
- Throws:
IdAuthenticationBusinessException
- the id authentication business exception
-
updateVIDstatus
public void updateVIDstatus(String vid) throws IdAuthenticationBusinessException
Update VID dstatus.- Specified by:
updateVIDstatus
in interfaceIdService<AutnTxn>
- Parameters:
vid
- the vid- Throws:
IdAuthenticationBusinessException
- the id authentication business exception
-
-