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 voidcheckIdKeyBindingPermitted(String idvId, String idvIdType)Map<String,Object>getDemoData(Map<String,Object> identity)Gets the demo data.Map<String,Object>getIdByUin(String uin, boolean isBio, Set<String> filterAttributes)Map<String,Object>getIdByVid(String vid, boolean isBio, Set<String> filterAttributes)Map<String,Object>getIdentity(String id, boolean isBio, IdType idType, Set<String> filterAttributes)Fetch data from Id Repo based on Individual's UIN / VID value and all UIN.Map<String,Object>getIdentity(String id, boolean isBio, Set<String> filterAttributes)StringgetIdHash(Map<String,Object> idResDTO)StringgetToken(Map<String,Object> idResDTO)Map<String,Object>processIdType(String idvIdType, String idvId, boolean isBio, boolean markVidConsumed, Set<String> filterAttributes)Process the IdType and validates the Idtype and upon validation reference Id is returned in AuthRequestDTO.voidsaveAutnTxn(AutnTxn authTxn)Store entry in Auth_txn table for all authentications.
-
-
-
Method Detail
-
getIdByUin
public Map<String,Object> getIdByUin(String uin, boolean isBio, Set<String> filterAttributes) throws IdAuthenticationBusinessException
- Specified by:
getIdByUinin interfaceIdService<AutnTxn>- Throws:
IdAuthenticationBusinessException
-
getIdByVid
public Map<String,Object> getIdByVid(String vid, boolean isBio, Set<String> filterAttributes) throws IdAuthenticationBusinessException
- Specified by:
getIdByVidin interfaceIdService<AutnTxn>- Throws:
IdAuthenticationBusinessException
-
processIdType
public Map<String,Object> processIdType(String idvIdType, String idvId, boolean isBio, boolean markVidConsumed, Set<String> filterAttributes) throws IdAuthenticationBusinessException
Process the IdType and validates the Idtype and upon validation reference Id is returned in AuthRequestDTO.- Specified by:
processIdTypein 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:
saveAutnTxnin interfaceIdService<AutnTxn>- Parameters:
authTxn- the auth txn- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
getDemoData
public Map<String,Object> getDemoData(Map<String,Object> identity)
Gets the demo data.- Specified by:
getDemoDatain interfaceIdService<AutnTxn>- Parameters:
identity- the identity- Returns:
- the demo data
-
getIdentity
public Map<String,Object> getIdentity(String id, boolean isBio, Set<String> filterAttributes) throws IdAuthenticationBusinessException
-
getIdentity
public Map<String,Object> getIdentity(String id, boolean isBio, IdType idType, Set<String> filterAttributes) 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
-
checkIdKeyBindingPermitted
public void checkIdKeyBindingPermitted(String idvId, String idvIdType) throws IdAuthenticationBusinessException
- Specified by:
checkIdKeyBindingPermittedin interfaceIdService<AutnTxn>- Throws:
IdAuthenticationBusinessException
-
-