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 org.springframework.core.env.Environment
environment
The environment.IdInfoHelper
idInfoHelper
The id info helper.MatchInputBuilder
matchInputBuilder
The id info helper.
-
Constructor Summary
Constructors Constructor Description DemoAuthServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthStatusInfo
authenticate(AuthRequestDTO authRequestDTO, String token, Map<String,List<IdentityInfoDTO>> demoEntity, String partnerId)
List<MatchInput>
constructMatchInput(AuthRequestDTO authRequestDTO)
Construct match input.List<MatchOutput>
getMatchOutput(List<MatchInput> listMatchInputs, AuthRequestDTO authRequestDTO, Map<String,List<IdentityInfoDTO>> demoEntity, String partnerId)
Gets the match output.
-
-
-
Field Detail
-
environment
@Autowired public org.springframework.core.env.Environment environment
The environment.
-
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:
authenticate
in interfaceAuthService
- Throws:
IdAuthenticationBusinessException
-
constructMatchInput
public List<MatchInput> constructMatchInput(AuthRequestDTO authRequestDTO)
Construct match input.- Parameters:
authRequestDTO
- the auth request DTO- Returns:
- the list
-
-