Package com.skava.service.impl
Class CreateUserOTPActivationServiceImpl
java.lang.Object
com.skava.service.impl.CreateUserOTPActivationServiceImpl
@Service
@Transactional(propagation=REQUIRED,
readOnly=false)
public class CreateUserOTPActivationServiceImpl
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongeneratOTPForSignUpMFAAndCheckRecentOTPs
(UserCommonServices userCommonServices, Collection collection, UsersEntity userEntity, CollectionCommonServices collectionCommonServices, boolean isResendOTP, boolean isResetOTP, int resendCount) This method is used to generate OTP andactivationParamresendMFASignUpOTPAndToken
(UsersEntity user, Collection collection, String locale, boolean isResendOTP, boolean isResetOTP) This method used to send SignUp OTP for users.
-
Constructor Details
-
CreateUserOTPActivationServiceImpl
public CreateUserOTPActivationServiceImpl()Default Constructor
-
-
Method Details
-
resendMFASignUpOTPAndToken
public String resendMFASignUpOTPAndToken(UsersEntity user, Collection collection, String locale, boolean isResendOTP, boolean isResetOTP) This method used to send SignUp OTP for users.- Parameters:
user
- UserEntity, which contains all the information about the user.collection
- HoldsCollection
object to load properties for this collection id.locale
- Indicates the user's locale information.isResendOTP
- boolean value to detect createUser or resend call.isResetOTP
- Boolean value which defines whether reset otp call.- Returns:
- String of Resend OTP count and Recent OTPs, random OTP, LastActivationParam
-
generatOTPForSignUpMFAAndCheckRecentOTPs
public String generatOTPForSignUpMFAAndCheckRecentOTPs(UserCommonServices userCommonServices, Collection collection, UsersEntity userEntity, CollectionCommonServices collectionCommonServices, boolean isResendOTP, boolean isResetOTP, int resendCount) This method is used to generate OTP andactivationParam- Parameters:
userCommonServices
- service class encapsulates all required services of User micro services.collection
- HoldsCollection
to load properties for this collection id.userEntity
- current User details.collectionCommonServices
- service class encapsulates all required services of collection services.isResendOTP
- boolean value to detect createUser or resend callisResetOTP
- boolean value to detect createuser or reset callresendCount
- holds value for no of times otp sent- Returns:
- String of recent OTPs, randomOtp and activationParam.
-