Class ValidateLoginMFAServiceImpl

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

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

    • VALIDATE_MFA_OTP_AND_TOKEN

      public static final String VALIDATE_MFA_OTP_AND_TOKEN
      The VALIDATE_MFA_OTP_AND_TOKEN.
      See Also:
    • USER_MFA_LOGIN_INVALID_OTP

      public static final String USER_MFA_LOGIN_INVALID_OTP
      The USER_MFA_LOGIN_INVALID_OTP.
      See Also:
  • Constructor Details

    • ValidateLoginMFAServiceImpl

      public ValidateLoginMFAServiceImpl()
      Default Constructor.
  • Method Details

    • validateMFALoginOTPAndToken

      public UserAuthResponse validateMFALoginOTPAndToken(UserAuthRequest request, Collection collection, long userId)
      This method used to validate login token and OTP
      Parameters:
      request - HoldsUserAuthRequest to validate login token and OTP.
      collection - HoldsCollection to load properties for this collection id.
      userId - Indicates the user id which is used to validate login token and OTP.
      Returns:
      The UserAuthResponse response.
    • validateMFAAuthenticatorOTP

      public UserAuthResponse validateMFAAuthenticatorOTP(UserAuthRequest request, Collection collection, long userId)
      This method used to validate login token and OTP
      Parameters:
      request - HoldsUserAuthRequest to validate login token and OTP.
      collection - HoldsCollection to load properties for this collection id.
      userId - Indicates the user id which is used to validate MFA Authenticator OTP.
      Returns:
      The UserAuthResponse response.
    • validateMFALoginToken

      public void validateMFALoginToken(UserAuthRequest request, MFAAuthEntity authEntity)
      This method used to validate login token
      Parameters:
      request - HoldsUserAuthRequest to validate login token and OTP.
      authEntity - HoldsMFAAuthEntity to load properties for this entity.