Class EotpFieldTemplate
java.lang.Object
org.bardframework.form.field.FieldTemplate<OtpField>
org.bardframework.form.field.input.InputFieldTemplateAbstract<OtpField,String>
org.bardframework.flow.form.field.input.FlowInputFieldTemplate<OtpField,String>
org.bardframework.flow.form.field.input.otp.OtpFieldTemplate<OtpField,String>
org.bardframework.flow.form.field.input.otp.email.EotpFieldTemplate
-
Field Summary
Fields inherited from class org.bardframework.flow.form.field.input.FlowInputFieldTemplate
actionProcessorsFields inherited from class org.bardframework.form.field.input.InputFieldTemplateAbstract
disableExpression, persistentValue, valueProviderFields inherited from class org.bardframework.form.field.FieldTemplate
defaultValue, fieldClazz, log, name, showExpression -
Constructor Summary
ConstructorsConstructorDescriptionEotpFieldTemplate(String name, OtpGenerator<String> otpGenerator, int maxTryToResolveCount, MessageSenderEmail messageSender) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringprotected Stringprotected booleanvoidpreProcess(String flowToken, Map<String, String> flowData, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) protected voidsend(String flowToken, Map<String, String> flowData, String otp, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) Methods inherited from class org.bardframework.flow.form.field.input.otp.OtpFieldTemplate
fill, isValid, resend, sendInternal, toValueMethods inherited from class org.bardframework.form.field.input.InputFieldTemplateAbstract
getDisableExpression, getValidationOrder, getValueProvider, isPersistentValue, setDisableExpression, setPersistentValue, setValueProvider, validate, validateMethods inherited from class org.bardframework.form.field.FieldTemplate
getDefaultValue, getEmptyField, getFieldClazz, getLog, getName, getShowExpression, mustShow, setDefaultValue, setLog, setShowExpression, toField
-
Constructor Details
-
EotpFieldTemplate
public EotpFieldTemplate(String name, OtpGenerator<String> otpGenerator, int maxTryToResolveCount, MessageSenderEmail messageSender)
-
-
Method Details
-
preProcess
public void preProcess(String flowToken, Map<String, String> flowData, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) throws Exception- Overrides:
preProcessin classFlowInputFieldTemplate<OtpField,String> - Throws:
Exception
-
send
protected void send(String flowToken, Map<String, String> flowData, String otp, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) throws Exception- Specified by:
sendin classOtpFieldTemplate<OtpField,String> - Throws:
Exception
-
isValidOtp
protected boolean isValidOtp(String flowToken, String otp, Map<String, String> flowData) throws Exception- Specified by:
isValidOtpin classOtpFieldTemplate<OtpField,String> - Throws:
Exception
-
getOtpMaxTryToResolveCountErrorMessage
- Specified by:
getOtpMaxTryToResolveCountErrorMessagein classOtpFieldTemplate<OtpField,String>
-
getMaxSendCountErrorMessage
- Specified by:
getMaxSendCountErrorMessagein classOtpFieldTemplate<OtpField,String>
-
getResendAction
- Specified by:
getResendActionin classOtpFieldTemplate<OtpField,String>
-