Class CaptchaGeneratorDefault

java.lang.Object
org.bardframework.flow.form.field.input.captcha.CaptchaGeneratorDefault
All Implemented Interfaces:
OtpGenerator<org.bardframework.commons.captcha.GeneratedCaptcha>

public class CaptchaGeneratorDefault extends Object implements OtpGenerator<org.bardframework.commons.captcha.GeneratedCaptcha>
  • Constructor Details

    • CaptchaGeneratorDefault

      public CaptchaGeneratorDefault(org.bardframework.commons.captcha.CaptchaService captchaService, org.bardframework.commons.captcha.CaptchaType type, int length)
  • Method Details

    • generate

      public org.bardframework.commons.captcha.GeneratedCaptcha generate()
      Specified by:
      generate in interface OtpGenerator<org.bardframework.commons.captcha.GeneratedCaptcha>
    • getCaptchaService

      public org.bardframework.commons.captcha.CaptchaService getCaptchaService()
    • getType

      public org.bardframework.commons.captcha.CaptchaType getType()
    • getLength

      public int getLength()
      Specified by:
      getLength in interface OtpGenerator<org.bardframework.commons.captcha.GeneratedCaptcha>
    • isNumber

      public Boolean isNumber()
      Specified by:
      isNumber in interface OtpGenerator<org.bardframework.commons.captcha.GeneratedCaptcha>