Class TotpFieldTemplate
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,Void>
org.bardframework.flow.form.field.input.otp.time.TotpFieldTemplate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final OtpServiceAbstractprotected Stringstatic final StringFields 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
ConstructorsConstructorDescriptionTotpFieldTemplate(String name, int maxTryToResolveCount, OtpServiceAbstract otpService) -
Method Summary
Methods inherited from class org.bardframework.flow.form.field.input.otp.OtpFieldTemplate
fill, isValid, resend, sendInternalMethods inherited from class org.bardframework.flow.form.field.input.FlowInputFieldTemplate
preProcessMethods inherited from class org.bardframework.form.field.input.InputFieldTemplateAbstract
getDisableExpression, getValidationOrder, getValueProvider, isPersistentValue, setDisableExpression, setPersistentValue, setValueProvider, toValue, validate, validateMethods inherited from class org.bardframework.form.field.FieldTemplate
getDefaultValue, getEmptyField, getFieldClazz, getLog, getName, getShowExpression, mustShow, setDefaultValue, setLog, setShowExpression, toField
-
Field Details
-
TOTP_SECRET_KEY
- See Also:
-
otpService
-
secretAttributeName
-
-
Constructor Details
-
TotpFieldTemplate
-
-
Method Details
-
getResendAction
- Specified by:
getResendActionin classOtpFieldTemplate<OtpField,Void>
-
send
protected void send(String flowToken, Map<String, Object> flowData, Void otp, Locale locale, jakarta.servlet.http.HttpServletResponse httpResponse) throws Exception- Specified by:
sendin classOtpFieldTemplate<OtpField,Void> - Throws:
Exception
-
isValidOtp
protected boolean isValidOtp(String flowToken, String otp, Map<String, Object> flowData) throws Exception- Specified by:
isValidOtpin classOtpFieldTemplate<OtpField,Void> - Throws:
Exception
-
getOtpMaxTryToResolveCountErrorMessage
- Specified by:
getOtpMaxTryToResolveCountErrorMessagein classOtpFieldTemplate<OtpField,Void>
-
getMaxSendCountErrorMessage
- Specified by:
getMaxSendCountErrorMessagein classOtpFieldTemplate<OtpField,Void>
-