Package com.skava.service.impl
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateToken
(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.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.
-
Constructor Details
-
ValidateTokenMFAServiceImpl
public ValidateTokenMFAServiceImpl()Default Constructor
-
-
Method Details
-
validateToken
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
- HoldsUserRequest
object for validating the login token.collection
- HoldsCollection
to load collection properties.- Returns:
- The
UsersResponse
object.
-
validateToken
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
- HoldsUserRequest
object for validating the login token.collection
- HoldsCollection
to load collection properties.routingKey
-- Returns:
- The
UsersResponse
object.
-