Interface VerificationCodeStrategy
- All Known Implementing Classes:
ChineseVerificationCodeStrategy
public interface VerificationCodeStrategy
Provides a strategy that handles verification code.
-
Method Summary
Modifier and TypeMethodDescriptiongetVerificationCode(String mobileNumber) Gets verification code by mobile number.voidremoveVerificationCode(String mobileNumber) Removes verification code according to mobile number.voidSaves mobile number verification code.
-
Method Details
-
saveVerificationCode
Saves mobile number verification code.- Parameters:
data- mobile number verificaion data
-
removeVerificationCode
Removes verification code according to mobile number.- Parameters:
mobileNumber- mobile number to get the verification code
-
getVerificationCode
Gets verification code by mobile number.
-