Class OpenCaptcha.Builder

java.lang.Object
cloud.opencode.base.captcha.OpenCaptcha.Builder
Enclosing class:
OpenCaptcha

public static final class OpenCaptcha.Builder extends Object
OpenCaptcha Builder OpenCaptcha 构建器
Since:
JDK 25, opencode-base-captcha V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Details

    • store

      public OpenCaptcha.Builder store(CaptchaStore store)
      Sets the CAPTCHA store. 设置验证码存储。
      Parameters:
      store - the store | 存储
      Returns:
      this builder | 此构建器
    • config

      public OpenCaptcha.Builder config(CaptchaConfig config)
      Sets the configuration. 设置配置。
      Parameters:
      config - the configuration | 配置
      Returns:
      this builder | 此构建器
    • type

      public OpenCaptcha.Builder type(CaptchaType type)
      Sets the CAPTCHA type. 设置验证码类型。
      Parameters:
      type - the type | 类型
      Returns:
      this builder | 此构建器
    • build

      public OpenCaptcha build()
      Builds the OpenCaptcha instance. 构建 OpenCaptcha 实例。
      Returns:
      the OpenCaptcha instance | OpenCaptcha 实例