Package com.skava.service.impl
Class UserLoginMergeServiceImpl
java.lang.Object
com.skava.service.impl.UserLoginMergeServiceImpl
@Service
@Transactional(propagation=REQUIRED,
readOnly=false,
noRollbackFor=com.skava.core.validation.ValidateException.class)
public class UserLoginMergeServiceImpl
extends Object
This service class handles the user service merge user from the request, process it and save the
details in DB. It also implements business logic required to resend or validate login MFA OTP.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckMFAEnabledAndMergeUserEnabled
(UserAuthRequest request, Collection collection, UsersEntity userEntity, AuthenticatedUser authenticatedUser, com.skava.core.event.EventClientComponent eventClientComponent, com.skava.core.auth.AuthTokenHandler authTokenHandler) This method is used to check whether MFA and merge enabled or not and send response based on the given request.checkMFAEnabledAndMergeUserEnabled
(UserAuthRequest request, Collection collection, UsersEntity userEntity, String authorizationData, boolean resetParam, com.skava.core.event.EventClientComponent eventClientComponent, com.skava.core.auth.AuthTokenHandler authTokenHandler) This method is used to check whether MFA and merge enabled or not and send response based on the given request.checkMFAEnabledAndMergeUserEnabled
(UserAuthRequest request, Collection collection, UsersEntity userEntity, String authorizationData, com.skava.core.event.EventClientComponent eventClientComponent, com.skava.core.auth.AuthTokenHandler authTokenHandler) This method is used to check whether MFA and merge enabled or not and send response based on the given request.
-
Constructor Details
-
UserLoginMergeServiceImpl
public UserLoginMergeServiceImpl()Default Constructor
-
-
Method Details
-
checkMFAEnabledAndMergeUserEnabled
public UserAuthResponse checkMFAEnabledAndMergeUserEnabled(UserAuthRequest request, Collection collection, UsersEntity userEntity, String authorizationData, boolean resetParam, com.skava.core.event.EventClientComponent eventClientComponent, com.skava.core.auth.AuthTokenHandler authTokenHandler) This method is used to check whether MFA and merge enabled or not and send response based on the given request.- Parameters:
request
- HoldsUserAuthRequest
to get request.collection
- HoldsCollection
to load collection properties from DB.userEntity
- HoldsUsersEntity
to load userid.authorizationData
- Holds authorization dataresetParam
- Holds reset parametereventClientComponent
- HoldsEventClientComponent
to trigger an event for MFA login.authTokenHandler
- HoldsAuthTokenHandler
to check auth token userid with authenticated user id.- Returns:
- The
UserAuthResponse
response object.
-
checkMFAEnabledAndMergeUserEnabled
public UserAuthResponse checkMFAEnabledAndMergeUserEnabled(UserAuthRequest request, Collection collection, UsersEntity userEntity, AuthenticatedUser authenticatedUser, com.skava.core.event.EventClientComponent eventClientComponent, com.skava.core.auth.AuthTokenHandler authTokenHandler) This method is used to check whether MFA and merge enabled or not and send response based on the given request.- Parameters:
request
- HoldsUserAuthRequest
to get request.collection
- HoldsCollection
to load collection properties from DB.userEntity
- HoldsUsersEntity
to load userid.authenticatedUser
- HoldsAuthenticatedUser
to have authentication informationeventClientComponent
- HoldsEventClientComponent
to trigger an event for MFA login.authTokenHandler
- HoldsAuthTokenHandler
to check auth token userid with authenticated user id.- Returns:
- The
UserAuthResponse
response object.
-
checkMFAEnabledAndMergeUserEnabled
public UserAuthResponse checkMFAEnabledAndMergeUserEnabled(UserAuthRequest request, Collection collection, UsersEntity userEntity, String authorizationData, com.skava.core.event.EventClientComponent eventClientComponent, com.skava.core.auth.AuthTokenHandler authTokenHandler) This method is used to check whether MFA and merge enabled or not and send response based on the given request.- Parameters:
request
- HoldsUserAuthRequest
to get request.collection
- HoldsCollection
to load collection properties from DB.userEntity
- HoldsUsersEntity
to load userid.authorizationData
- authorizationDataeventClientComponent
- HoldsEventClientComponent
to trigger an event for MFA login.authTokenHandler
- HoldsAuthTokenHandler
to check auth token userid with authenticated user id.- Returns:
- The
UserAuthResponse
response object.
-