public class VerifyMobileNumberValidator
extends java.lang.Object
| Constructor and Description |
|---|
VerifyMobileNumberValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isVerificationCodeExpired(java.util.Date date)
Check the verification code is expired.
|
boolean |
supports(java.lang.Class<?> clazz) |
void |
validate(java.lang.Object object,
Errors errors) |
protected void |
validateMobileNumber(java.lang.String mobileNumber,
Errors errors)
Validate the binding mobile number before saving.
|
protected void |
validateVerificationCode(java.lang.String verificationCode,
java.lang.String key,
Errors errors)
Validate the verification code before saving.
|
public boolean supports(java.lang.Class<?> clazz)
public void validate(java.lang.Object object,
Errors errors)
protected void validateMobileNumber(java.lang.String mobileNumber,
Errors errors)
protected void validateVerificationCode(java.lang.String verificationCode,
java.lang.String key,
Errors errors)
protected boolean isVerificationCodeExpired(java.util.Date date)
date - The time when verification code was creating.Copyright © 2018 SAP SE. All Rights Reserved.