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 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 - Holds UserAuthRequest to get request.
      collection - Holds Collection to load collection properties from DB.
      userEntity - Holds UsersEntity to load userid.
      authorizationData - Holds authorization data
      resetParam - Holds reset parameter
      eventClientComponent - Holds EventClientComponent to trigger an event for MFA login.
      authTokenHandler - Holds AuthTokenHandler 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 - Holds UserAuthRequest to get request.
      collection - Holds Collection to load collection properties from DB.
      userEntity - Holds UsersEntity to load userid.
      authenticatedUser - Holds AuthenticatedUser to have authentication information
      eventClientComponent - Holds EventClientComponent to trigger an event for MFA login.
      authTokenHandler - Holds AuthTokenHandler 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 - Holds UserAuthRequest to get request.
      collection - Holds Collection to load collection properties from DB.
      userEntity - Holds UsersEntity to load userid.
      authorizationData - authorizationData
      eventClientComponent - Holds EventClientComponent to trigger an event for MFA login.
      authTokenHandler - Holds AuthTokenHandler to check auth token userid with authenticated user id.
      Returns:
      The UserAuthResponse response object.