Interface IdService<T>
-
- Type Parameters:
T- the generic type
public interface IdService<T>The Interface IdAuthService.- Author:
- Arun Bose
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckIdKeyBindingPermitted(String idvId, String idvIdType)Gets the Identity Transaction Limit.Map<String,Object>getDemoData(Map<String,Object> identity)Gets the demo data.Map<String,Object>getIdByUin(String uin, boolean isBio, Set<String> filterAttributes)validates the UIN.Map<String,Object>getIdByVid(String vid, boolean isBio, Set<String> filterAttributes)validates the VID.StringgetIdHash(Map<String,Object> idResDTO)Gets the IdHash.StringgetToken(Map<String,Object> idResDTO)Gets the token .Map<String,Object>processIdType(String idvIdType, String idvId, boolean isBio, boolean markVidConsumed, Set<String> filterAttributes)Process id type.voidsaveAutnTxn(T t)Store entry in Auth_txn table for all authentications.
-
-
-
Method Detail
-
getIdByUin
Map<String,Object> getIdByUin(String uin, boolean isBio, Set<String> filterAttributes) throws IdAuthenticationBusinessException
validates the UIN.- Parameters:
uin- the uinisBio- the is bio- Returns:
- the id repo by uin number
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
getIdByVid
Map<String,Object> getIdByVid(String vid, boolean isBio, Set<String> filterAttributes) throws IdAuthenticationBusinessException
validates the VID.- Parameters:
vid- the vidisBio- the is bio- Returns:
- the id repo by vid number
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
processIdType
Map<String,Object> processIdType(String idvIdType, String idvId, boolean isBio, boolean markVidConsumed, Set<String> filterAttributes) throws IdAuthenticationBusinessException
Process id type.- Parameters:
idvIdType- the idv id typeidvId- the idv idisBio- the is biomarkVidConsumed- the flag to mark VID consumed- Returns:
- the map
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
saveAutnTxn
void saveAutnTxn(T t) throws IdAuthenticationBusinessException
Store entry in Auth_txn table for all authentications.- Parameters:
t- the t- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
getDemoData
Map<String,Object> getDemoData(Map<String,Object> identity)
Gets the demo data.- Parameters:
identity- the identity- Returns:
- the demo data
-
getToken
String getToken(Map<String,Object> idResDTO)
Gets the token .- Parameters:
idResDTO- the id res DTO- Returns:
- the token
-
getIdHash
String getIdHash(Map<String,Object> idResDTO)
Gets the IdHash.- Parameters:
idResDTO- the id res DTO- Returns:
- the Id Hash
-
checkIdKeyBindingPermitted
void checkIdKeyBindingPermitted(String idvId, String idvIdType) throws IdAuthenticationBusinessException
Gets the Identity Transaction Limit.- Parameters:
idvId- the id/vididvIdType- the id/vid type- Throws:
IdAuthenticationBusinessException
-
-