Class ValidateTokenMFAServiceImpl

java.lang.Object
com.skava.service.impl.ValidateTokenMFAServiceImpl

@Service @Transactional(propagation=REQUIRED, readOnly=false, noRollbackFor=com.skava.core.validation.ValidateException.class) public class ValidateTokenMFAServiceImpl extends Object
This service class handles the user service Validating MFA token from the request, process it and save the details in DB. It also implements business required to resend or validate MFA OTP.
Author:
Infosys Equinox
  • Constructor Details

    • ValidateTokenMFAServiceImpl

      public ValidateTokenMFAServiceImpl()
      Default Constructor
  • Method Details

    • validateToken

      public UsersResponse validateToken(UserRequest request, Collection collection)
      This method is used to validate token and choose whether resends or validate otp based on the presence of the Otp from request.
      Parameters:
      request - Holds UserRequest object for validating the login token.
      collection - Holds Collection to load collection properties.
      Returns:
      The UsersResponse object.
    • validateToken

      public UsersResponse validateToken(UserRequest request, Collection collection, String routingKey)
      This method is used to validate token and choose whether resends or validate otp based on the presence of the Otp from request.
      Parameters:
      request - Holds UserRequest object for validating the login token.
      collection - Holds Collection to load collection properties.
      routingKey -
      Returns:
      The UsersResponse object.