Class DemoAuthServiceImpl
- java.lang.Object
-
- io.mosip.authentication.common.service.impl.DemoAuthServiceImpl
-
- All Implemented Interfaces:
AuthService,DemoAuthService
@Service public class DemoAuthServiceImpl extends Object implements DemoAuthService
The implementation of Demographic Authentication service.- Author:
- Arun Bose
-
-
Field Summary
Fields Modifier and Type Field Description IdInfoHelperidInfoHelperThe id info helper.MatchInputBuildermatchInputBuilderThe id info helper.
-
Constructor Summary
Constructors Constructor Description DemoAuthServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthStatusInfoauthenticate(AuthRequestDTO authRequestDTO, String token, Map<String,List<IdentityInfoDTO>> demoEntity, String partnerId)List<MatchInput>constructMatchInput(AuthRequestDTO authRequestDTO, Map<String,List<IdentityInfoDTO>> idInfo)Construct match input.List<MatchOutput>getMatchOutput(List<MatchInput> listMatchInputs, AuthRequestDTO authRequestDTO, Map<String,List<IdentityInfoDTO>> demoEntity, String partnerId)Gets the match output.
-
-
-
Field Detail
-
idInfoHelper
@Autowired public IdInfoHelper idInfoHelper
The id info helper.
-
matchInputBuilder
@Autowired public MatchInputBuilder matchInputBuilder
The id info helper.
-
-
Method Detail
-
getMatchOutput
public List<MatchOutput> getMatchOutput(List<MatchInput> listMatchInputs, AuthRequestDTO authRequestDTO, Map<String,List<IdentityInfoDTO>> demoEntity, String partnerId) throws IdAuthenticationBusinessException
Gets the match output.- Parameters:
listMatchInputs- the list match inputsauthRequestDTO- the demo DTOdemoEntity- the demo entitypartnerId- the partner id- Returns:
- the match output
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
authenticate
public AuthStatusInfo authenticate(AuthRequestDTO authRequestDTO, String token, Map<String,List<IdentityInfoDTO>> demoEntity, String partnerId) throws IdAuthenticationBusinessException
- Specified by:
authenticatein interfaceAuthService- Throws:
IdAuthenticationBusinessException
-
constructMatchInput
public List<MatchInput> constructMatchInput(AuthRequestDTO authRequestDTO, Map<String,List<IdentityInfoDTO>> idInfo)
Construct match input.- Parameters:
authRequestDTO- the auth request DTO- Returns:
- the list
-
-